Commit f1df745f authored by Andreas Traczyk's avatar Andreas Traczyk

ui: call setprocessdpiaware before the main eventloop

Change-Id: If327bcd729060c7f16fa6efad1d3f31337344899
parent 59ba48a3
......@@ -103,7 +103,11 @@ fileDebug(QFile& debugFile)
int
main(int argc, char *argv[])
{
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#ifdef Q_OS_WIN
SetProcessDPIAware();
#endif // Q_OS_WIN
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
char ARG_DISABLE_WEB_SECURITY[] = "--disable-web-security";
......@@ -112,6 +116,7 @@ main(int argc, char *argv[])
for (int i = 0; i < argc; i++) {
newArgv[i] = argv[i];
}
newArgv[argc] = ARG_DISABLE_WEB_SECURITY;
newArgv[argc + 1] = nullptr;
......@@ -240,7 +245,6 @@ main(int argc, char *argv[])
MainWindow::instance().hide();
}
#ifdef URI_PROTOCOL
QObject::connect(shmClient, SIGNAL(RingEvent(QString)), &MainWindow::instance(), SLOT(onRingEvent(QString)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment