[Pkg-owncloud-commits] [owncloud-client] 254/470: Scale correctly with HiDPI displays on Linux with Qt 5.6
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:25:10 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 9ea191f63de6e008cc0507f5e03881688434bff7
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Wed Mar 30 18:24:00 2016 +0200
Scale correctly with HiDPI displays on Linux with Qt 5.6
---
src/gui/main.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 28a6858..ff5434a 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -47,18 +47,18 @@ int main(int argc, char **argv)
{
Q_INIT_RESOURCE(client);
-#ifdef Q_OS_WIN
+#ifndef Q_OS_MAC
// If the font size ratio is set on Windows, we need to
// enable the auto pixelRatio in Qt since we don't
// want to use sizes relative to the font size everywhere.
- // This is automatic on OS X, but opt-in on Windows
+ // 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
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
#endif
-#endif // Q_OS_WIN
+#endif // !Q_OS_MAC
#ifdef Q_OS_MAC
Mac::CocoaInitializer cocoaInit; // RIIA
--
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