From: Hannah von Reth Date: Thu, 8 Sep 2016 11:30:26 +0000 (+0200) Subject: Use Qt::AA_UseHighDpiPixmaps X-Git-Tag: 0.12.5~53 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=abd916f9d5457a0048e21a958b068558bf6ba6ac 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. (cherry picked from commit d29a6e9521e27e5d4d86fec82b5daa71085f87a5) --- diff --git a/src/common/main.cpp b/src/common/main.cpp index 1f397311..3d334956 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -182,11 +182,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