main.cpp: put setAttribute before creating app

This commit is contained in:
miruka 2019-12-07 09:05:57 -04:00
parent 28b3727e88
commit 150744ab8a

View File

@ -11,14 +11,13 @@
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QApplication::setOrganizationName("harmonyqml"); QApplication::setOrganizationName("harmonyqml");
QApplication::setApplicationName("harmonyqml"); QApplication::setApplicationName("harmonyqml");
QApplication::setApplicationDisplayName("HarmonyQML"); QApplication::setApplicationDisplayName("HarmonyQML");
QApplication::setApplicationVersion("0.2.3"); QApplication::setApplicationVersion("0.2.3");
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
QQmlEngine engine; QQmlEngine engine;
QQmlContext *objectContext = new QQmlContext(engine.rootContext()); QQmlContext *objectContext = new QQmlContext(engine.rootContext());