mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
#9130 Text in main work area isn't rendered with high resolution
Try SVG version of banner with Qt4 too.
This commit is contained in:
parent
d392df30c0
commit
2ac45cc4d2
@ -162,9 +162,9 @@ public:
|
|||||||
/// The text to be written on top of the pixmap
|
/// The text to be written on top of the pixmap
|
||||||
QString const text = lyx_version ?
|
QString const text = lyx_version ?
|
||||||
qt_("version ") + lyx_version : qt_("unknown version");
|
qt_("version ") + lyx_version : qt_("unknown version");
|
||||||
|
#if QT_VERSION >= 0x050000
|
||||||
QString imagedir = "images/";
|
QString imagedir = "images/";
|
||||||
FileName fname = imageLibFileSearch(imagedir, "banner", "svgz");
|
FileName fname = imageLibFileSearch(imagedir, "banner", "svgz");
|
||||||
#if QT_VERSION >= 0x050000
|
|
||||||
QSvgRenderer svgRenderer(toqstr(fname.absFileName()));
|
QSvgRenderer svgRenderer(toqstr(fname.absFileName()));
|
||||||
if (svgRenderer.isValid()) {
|
if (svgRenderer.isValid()) {
|
||||||
splash_ = QPixmap(splashSize());
|
splash_ = QPixmap(splashSize());
|
||||||
@ -175,7 +175,7 @@ public:
|
|||||||
splash_ = getPixmap("images/", "banner", "png");
|
splash_ = getPixmap("images/", "banner", "png");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
splash_ = getPixmap("images/", "banner", "png");
|
splash_ = getPixmap("images/", "banner", "svgz,png");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QPainter pain(&splash_);
|
QPainter pain(&splash_);
|
||||||
|
Loading…
Reference in New Issue
Block a user