Enable High DPI scaling, resolves #221

This commit is contained in:
Janek Bevendorff 2017-01-26 20:57:25 +01:00
parent 6dcb83f913
commit 188cac34ce
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

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);