Actually set attributes before starting the app

fixes "Attribute Qt::AA_EnableHighDpiScaling must be set before
QCoreApplication is created."
remotes/origin/0.7.0-dev
Nicolas Werner 5 years ago
parent d2af827194
commit 512db8c6ff
  1. 2
      src/main.cpp

@ -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();

Loading…
Cancel
Save