summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2020-12-02 15:08:18 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-08 20:54:59 +0000
commit6c546342c2de23cb2061b78c422eb61a53ebf017 (patch)
treefcddcf4a9cb7c0debbdec936d04746014c67f847 /src/widgets/widgets
parent15d497c38d1f1a482553f5f3db852d9dfcd78c24 (diff)
QSplashScreen: draw pixmap with SmoothTransfrom
Use high-quality scaling to improve rendering in cases where the pixmap has to be scaled down, such as when drawing a @2x pixmap at 150%. Change-Id: I216b03b61dfa2cc2cc8c573e24a576424f6f5d17 Fixes: QTBUG-88982 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit fdc687913df2dbd92c7469082690381fea55e628) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r--src/widgets/widgets/qsplashscreen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qsplashscreen.cpp b/src/widgets/widgets/qsplashscreen.cpp
index 2c2d1922be..f417a997a7 100644
--- a/src/widgets/widgets/qsplashscreen.cpp
+++ b/src/widgets/widgets/qsplashscreen.cpp
@@ -353,6 +353,7 @@ bool QSplashScreen::event(QEvent *e)
if (e->type() == QEvent::Paint) {
Q_D(QSplashScreen);
QPainter painter(this);
+ painter.setRenderHints(QPainter::SmoothPixmapTransform);
painter.setLayoutDirection(layoutDirection());
if (!d->pixmap.isNull())
painter.drawPixmap(QPoint(), d->pixmap);