[Pkg-owncloud-commits] [owncloud-client] 54/78: Don't try to determine pixel ratio with Qt < 5.6.0
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Jun 24 16:29:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 0194ebb2229adc33f5b9790231a3384b46474bde
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Mon May 30 06:55:31 2016 +0200
Don't try to determine pixel ratio with Qt < 5.6.0
This seems to be broken. Worst case users can still
set it manually
Addresses #4840
---
src/gui/main.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 1a13d1f..2b395d5 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -53,9 +53,7 @@ int main(int argc, char **argv)
// want to use sizes relative to the font size everywhere.
// This is automatic on OS X, but opt-in on Windows and Linux
// https://doc-snapshots.qt.io/qt5-5.6/highdpi.html#qt-support
-#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
- qputenv("QT_DEVICE_PIXEL_RATIO", "auto");
-#else
+#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
#endif
#endif // !Q_OS_MAC
--
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