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:
parent
c2a3be79fe
commit
d4421c7161
|
@ -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…
Reference in New Issue
Block a user