[Pkg-owncloud-commits] [owncloud-client] 53/171: Enable HiDpi scaling with Qt 5.6
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.
commit 16030a61eb055733c5da1cf6c1bad4caef10a7f8
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Mon Jan 4 11:49:03 2016 +0100
Enable HiDpi scaling with Qt 5.6
---
src/gui/application.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index 0124829..f347020 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -113,6 +113,11 @@ Application::Application(int &argc, char **argv) :
#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;
if ( _helpOnly || _versionOnly ) return;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list