Commit 1ccb8fad authored by Andreas Traczyk's avatar Andreas Traczyk

Revert "ui: call setprocessdpiaware before the main eventloop"

This reverts commit f1df745f.

Reason for revert: has negative effects at very high scaling values

Change-Id: I1d464173fc1462ecf1e8ac22cf2039bdcedf29a5
parent 3eb76b59
......@@ -108,10 +108,6 @@ main(int argc, char *argv[])
if (!guard.tryToRun())
return 0;
#ifdef Q_OS_WIN
SetProcessDPIAware();
#endif // Q_OS_WIN
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
......@@ -121,7 +117,6 @@ 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;
......@@ -250,6 +245,7 @@ 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