qt 5.12 compatible
This commit is contained in:
parent
52ed44f1f3
commit
af4a872024
|
@ -175,8 +175,12 @@ int main(int argc, char *argv[])
|
||||||
pMainWindow->newEditor();
|
pMainWindow->newEditor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if QT_VERSION_MAJOR==5 && QT_VERSION_MINOR < 15
|
||||||
|
setScreenDPI(qApp->primaryScreen()->logicalDotsPerInch());
|
||||||
|
#else
|
||||||
if (mainWindow.screen())
|
if (mainWindow.screen())
|
||||||
setScreenDPI(mainWindow.screen()->logicalDotsPerInch());
|
setScreenDPI(mainWindow.screen()->logicalDotsPerInch());
|
||||||
|
#endif
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
WindowLogoutEventFilter filter;
|
WindowLogoutEventFilter filter;
|
||||||
|
|
Loading…
Reference in New Issue