Don't try to determine pixel ratio with Qt < 5.6.0
authorDaniel Molkentin <danimo@owncloud.com>
Mon, 30 May 2016 04:55:31 +0000 (06:55 +0200)
committerDaniel Molkentin <danimo@owncloud.com>
Mon, 30 May 2016 06:27:57 +0000 (08:27 +0200)
This seems to be broken. Worst case users can still
set it manually

Addresses #4840

src/gui/main.cpp

index 1a13d1f9ad30132fe7be57c7ba60e38e4945f134..2b395d58072748caec9bbd85e3613b11dcaa3e49 100644 (file)
@@ -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