Enable High DPI scaling, resolves #221

This commit is contained in:
Janek Bevendorff 2017-01-26 20:57:25 +01:00 committed by Jonathan White
parent 7df6d27900
commit 1b8366f040

View File

@ -18,6 +18,7 @@
#include <QCommandLineParser>
#include <QFile>
#include <QTextStream>
#include <QtGlobal>
#include "config-keepassx.h"
#include "core/Config.h"
@ -44,7 +45,10 @@ int main(int argc, char** argv)
Tools::disableCoreDumps();
#endif
Tools::setupSearchPaths();
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
Application app(argc, argv);
Application::setApplicationName("keepassxc");
Application::setApplicationVersion(KEEPASSX_VERSION);