From: Daniel Molkentin Date: Mon, 4 Jan 2016 10:49:03 +0000 (+0100) Subject: Enable HiDpi scaling with Qt 5.6 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1254^2~123 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=16030a61eb055733c5da1cf6c1bad4caef10a7f8;p=nextcloud-desktop.git Enable HiDpi scaling with Qt 5.6 --- diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 012482940..f347020bb 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -112,6 +112,11 @@ Application::Application(int &argc, char **argv) : setWindowIcon( _theme->applicationIcon() ); #if QT_VERSION > QT_VERSION_CHECK(5, 0, 0) setAttribute(Qt::AA_UseHighDpiPixmaps, true); +#endif +#if QT_VERSION > QT_VERSION_CHECK(5, 6, 0) + // this may slightly break some styles until they + // get fixed, but will make dialogs readable. + setAttribute(Qt::AA_EnableHighDpiScaling, true); #endif parseOptions(arguments()); //no need to waste time;