mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Style fixes.
This commit is contained in:
parent
12bea3708b
commit
394bda7aca
@ -146,7 +146,7 @@ TomahawkApp::TomahawkApp( int& argc, char *argv[] )
|
||||
setApplicationVersion( QLatin1String( TOMAHAWK_VERSION ) );
|
||||
|
||||
registerMetaTypes();
|
||||
TomahawkUtils::installTranslator(this);
|
||||
TomahawkUtils::installTranslator( this );
|
||||
}
|
||||
|
||||
|
||||
|
@ -18,11 +18,11 @@
|
||||
|
||||
#include "CrashReporter.h"
|
||||
|
||||
#include <QTranslator>
|
||||
#include <iostream>
|
||||
|
||||
#include "utils/TomahawkUtils.h"
|
||||
|
||||
#include <QTranslator>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
const char* k_usage =
|
||||
"Usage:\n"
|
||||
@ -37,8 +37,7 @@ int main( int argc, char* argv[] )
|
||||
QCoreApplication::setOrganizationDomain( "tomahawk-player.org" );
|
||||
|
||||
QApplication app( argc, argv );
|
||||
|
||||
TomahawkUtils::installTranslator(&app);
|
||||
TomahawkUtils::installTranslator( &app );
|
||||
|
||||
if ( app.arguments().size() != 4 )
|
||||
{
|
||||
|
@ -18,12 +18,12 @@
|
||||
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "utils/TomahawkUtils.h"
|
||||
|
||||
#include "TomahawkVersion.h"
|
||||
#include "config.h"
|
||||
#include "TomahawkSettings.h"
|
||||
|
||||
#include "utils/TomahawkUtils.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "Source.h"
|
||||
#include "BinaryExtractWorker.h"
|
||||
#include "SharedTimeLine.h"
|
||||
@ -35,7 +35,6 @@
|
||||
#include <quazip.h>
|
||||
#include <quazipfile.h>
|
||||
|
||||
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkProxy>
|
||||
@ -62,6 +61,8 @@
|
||||
#include <QtCrypto>
|
||||
#endif
|
||||
|
||||
#include "Logger.h"
|
||||
|
||||
namespace TomahawkUtils
|
||||
{
|
||||
static quint64 s_infosystemRequestId = 0;
|
||||
@ -774,8 +775,9 @@ crash()
|
||||
*a = 1;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
installTranslator(QObject* parent)
|
||||
installTranslator( QObject* parent )
|
||||
{
|
||||
#if QT_VERSION >= 0x040800
|
||||
QString locale = QLocale::system().uiLanguages().first().replace( "-", "_" );
|
||||
@ -813,6 +815,7 @@ installTranslator(QObject* parent)
|
||||
QCoreApplication::installTranslator( translator );
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
verifyFile( const QString& filePath, const QString& signature )
|
||||
{
|
||||
|
@ -169,6 +169,8 @@ namespace TomahawkUtils
|
||||
DLLEXPORT QDir appDataDir();
|
||||
DLLEXPORT QDir appLogDir();
|
||||
|
||||
DLLEXPORT void installTranslator( QObject* parent );
|
||||
|
||||
DLLEXPORT QString timeToString( int seconds );
|
||||
DLLEXPORT QString ageToString( const QDateTime& time, bool appendAgoString = false );
|
||||
DLLEXPORT QString filesizeToString( unsigned int size );
|
||||
@ -212,8 +214,6 @@ namespace TomahawkUtils
|
||||
DLLEXPORT QList< Tomahawk::query_ptr > mergePlaylistChanges( const QList< Tomahawk::query_ptr >& orig, const QList< Tomahawk::query_ptr >& newTracks, bool& changed );
|
||||
|
||||
DLLEXPORT void crash();
|
||||
|
||||
DLLEXPORT void installTranslator(QObject *parent);
|
||||
}
|
||||
|
||||
#endif // TOMAHAWKUTILS_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user