Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Molkentin <danimo@owncloud.com>2016-05-30 07:55:31 +0300
committerDaniel Molkentin <danimo@owncloud.com>2016-05-30 09:27:57 +0300
commit0194ebb2229adc33f5b9790231a3384b46474bde (patch)
tree97c0b80eddc4801784200e151c2a65129f8169fa /src/gui/main.cpp
parentdc654ac84674022a6fa50c8c43fdea7013f3c021 (diff)
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
Diffstat (limited to 'src/gui/main.cpp')
-rw-r--r--src/gui/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 1a13d1f9a..2b395d580 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