From d4421c71619ad548ff9f93d0e2d7cc6a243bc983 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sun, 29 May 2022 14:01:31 -0700 Subject: [PATCH] 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. --- src/appmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appmanager.cpp b/src/appmanager.cpp index d23e31a34..003ca8d8c 100644 --- a/src/appmanager.cpp +++ b/src/appmanager.cpp @@ -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); }