]> git.lyx.org Git - lyx.git/commitdiff
#9130 Text in main work area isn't rendered with high resolution
authorStephan Witt <switt@lyx.org>
Wed, 20 May 2015 06:46:26 +0000 (08:46 +0200)
committerStephan Witt <switt@lyx.org>
Wed, 20 May 2015 06:46:26 +0000 (08:46 +0200)
Try SVG version of banner with Qt4 too.

src/frontends/qt4/GuiView.cpp

index 7c6a5d25ff76adc0f7bd047cf9ac3a6ec2739e54..8ce28113537d34f3704cdabe45b767f3b64562ea 100644 (file)
@@ -162,9 +162,9 @@ public:
                /// The text to be written on top of the pixmap
                QString const text = lyx_version ?
                        qt_("version ") + lyx_version : qt_("unknown version");
+#if QT_VERSION >= 0x050000
                QString imagedir = "images/";
                FileName fname = imageLibFileSearch(imagedir, "banner", "svgz");
-#if QT_VERSION >= 0x050000
                QSvgRenderer svgRenderer(toqstr(fname.absFileName()));
                if (svgRenderer.isValid()) {
                        splash_ = QPixmap(splashSize());
@@ -175,7 +175,7 @@ public:
                        splash_ = getPixmap("images/", "banner", "png");
                }
 #else
-               splash_ = getPixmap("images/", "banner", "png");
+               splash_ = getPixmap("images/", "banner", "svgz,png");
 #endif
 
                QPainter pain(&splash_);