|
|
|
@ -117,6 +117,12 @@ void logMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QSt
@@ -117,6 +117,12 @@ void logMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QSt
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) |
|
|
|
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
|
|
|
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
qInstallMessageHandler(logMessageHandler); |
|
|
|
|
|
|
|
|
|
QApplication a(argc, argv); |
|
|
|
@ -129,10 +135,6 @@ int main(int argc, char *argv[])
@@ -129,10 +135,6 @@ int main(int argc, char *argv[])
|
|
|
|
|
osx::migrateProfiles(); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifdef HIGH_DPI |
|
|
|
|
a.setAttribute(Qt::AA_UseHighDpiPixmaps, true); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
qsrand(time(0)); |
|
|
|
|
Settings::getInstance(); |
|
|
|
|
Translator::translate(); |
|
|
|
|