1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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.
This commit is contained in:
Anthony Bilinski 2022-05-29 14:01:31 -07:00
parent c2a3be79fe
commit d4421c7161
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

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