Browse Source

chore(Qt): Replace QGuiApplication usage with QApplication

QGuiApplication is for QML projects, QApplication is for Qt Widget projects.

We use QApplication everywhere else, so use here too.
pull/6640/head
Anthony Bilinski 3 years ago
parent
commit
d4421c7161
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 4
      src/appmanager.cpp

4
src/appmanager.cpp

@ -172,8 +172,8 @@ AppManager::AppManager(int argc, char** argv) @@ -172,8 +172,8 @@ AppManager::AppManager(int argc, char** argv)
void AppManager::preConstructionInitialization()
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
qInstallMessageHandler(logMessageHandler);
}

Loading…
Cancel
Save