core: Enable support for high-DPI screens (Qt >= 5.6)

Fixes #111.
This commit is contained in:
Oleg Shparber 2017-02-19 00:10:42 -05:00
parent 967145fd54
commit 43d8dd1680

View File

@ -179,6 +179,11 @@ int main(int argc, char *argv[])
QCoreApplication::setOrganizationDomain(QStringLiteral("zealdocs.org"));
QCoreApplication::setOrganizationName(QStringLiteral("Zeal"));
#if QT_VERSION >= 0x050600
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QScopedPointer<QApplication> qapp(new QApplication(argc, argv));
const CommandLineParameters clParams = parseCommandLine(qapp->arguments());