]> git.lyx.org Git - lyx.git/commitdiff
Remove special code for Qt5 to manage HiDPI. It's not needed anymore and leads to...
authorStephan Witt <switt@lyx.org>
Sat, 7 May 2016 07:56:03 +0000 (09:56 +0200)
committerStephan Witt <switt@lyx.org>
Fri, 15 Jul 2016 05:20:50 +0000 (07:20 +0200)
For reference see the screen shots in bug tracker ticket #10114.

(cherry picked from commit d5fb80ed874057da0d0b31b836052b9fa35ba269)

src/frontends/qt4/GuiApplication.cpp
status.22x

index 375a6ac88a154198a9aaa0b0caa78dc3ec2c502e..afcd61176a7e5e1940a047b30a4f26ac229d5d9e 100644 (file)
@@ -553,18 +553,7 @@ QString iconName(FuncRequest const & f, bool unknown)
 
 bool getPixmap(QPixmap & pixmap, QString const & path)
 {
-       if (pixmap.load(path)) {
-#if QT_VERSION >= 0x050000
-               if (path.endsWith(".svgz") || path.endsWith(".svg") ) {
-                       GuiApplication const * guiApp = theGuiApp();
-                       if (guiApp != 0) {
-                               pixmap.setDevicePixelRatio(guiApp->pixelRatio());
-                       }
-               }
-#endif
-               return true;
-       }
-       return false;
+       return pixmap.load(path);
 }
 
 
index d45997afca67fb53efec8bca7584f6af1e249da8..cc47a8a4daf6e63695a2ecb9feaf8f5f3de2e69e 100644 (file)
@@ -176,6 +176,8 @@ What's new
 
 - Fix title of LuaTeX and XeTeX error dialogs (part of bug 10013).
 
+- Remove special code for Qt5 to load SVG icons with HiDPI (part of bug 10114).
+
 
 * INTERNALS