From: Hannah von Reth Date: Thu, 8 Sep 2016 11:30:26 +0000 (+0200) Subject: Use Qt::AA_UseHighDpiPixmaps X-Git-Tag: travis-deploy-test~369 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d29a6e9521e27e5d4d86fec82b5daa71085f87a5 Use Qt::AA_UseHighDpiPixmaps 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. --- diff --git a/src/common/main.cpp b/src/common/main.cpp index 12aaa29c..529fb536 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -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