Use Qt::AA_UseHighDpiPixmaps
authorHannah von Reth <vonreth@kde.org>
Thu, 8 Sep 2016 11:30:26 +0000 (13:30 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 14 Sep 2016 21:29:04 +0000 (23:29 +0200)
This will fix some issues... and introduce new ones:

* Some pixmaps are now cut
* Old banner pixmap still pixelated
* Overall looks much less pixelated

Resolves GH-248.

src/common/main.cpp

index 12aaa29..529fb53 100644 (file)
@@ -188,11 +188,17 @@ int main(int argc, char **argv)
 #elif defined BUILD_QTUI
 # if QT_VERSION >= 0x050600
     QtUiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
+# if QT_VERSION >= 0x050700
+    QtUiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
 # endif
     QtUiApplication app(argc, argv);
 #elif defined BUILD_MONO
 # if QT_VERSION >= 0x050600
     MonolithicApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
+# if QT_VERSION >= 0x050700
+    MonolithicApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
 # endif
     MonolithicApplication app(argc, argv);
 #endif