Skip to content
Snippets Groups Projects
Commit 512db8c6 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Actually set attributes before starting the app

fixes "Attribute Qt::AA_EnableHighDpiScaling must be set before
QCoreApplication is created."
parent d2af8271
No related branches found
No related tags found
No related merge requests found
......@@ -118,12 +118,12 @@ main(int argc, char *argv[])
}
#endif
QApplication app(argc, argv);
QCoreApplication::setApplicationName("nheko");
QCoreApplication::setApplicationVersion(nheko::version);
QCoreApplication::setOrganizationName("nheko");
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
QCommandLineParser parser;
parser.addHelpOption();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment