summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-07-10 09:44:19 +0200
committerAndy Shaw <andy.shaw@qt.io>2018-07-10 15:23:52 +0000
commit50be124f169f26ba5c94515f520b018e7fbe7da4 (patch)
tree1bfcc2d54069c8053a654017d48ebf442e3c1f7a
parent94a65fb23210a60e286de0f13a6f31af475f1950 (diff)
QSplashScreen: Pass the layout direction set on widget to the painter
Change-Id: I6adc9f6fd77b6e9f9387393884e13285f4452018 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-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 468fc272b5..44b9f7d9a1 100644
--- a/src/widgets/widgets/qsplashscreen.cpp
+++ b/src/widgets/widgets/qsplashscreen.cpp
@@ -343,6 +343,7 @@ bool QSplashScreen::event(QEvent *e)
if (e->type() == QEvent::Paint) {
Q_D(QSplashScreen);
QPainter painter(this);
+ painter.setLayoutDirection(layoutDirection());
if (!d->pixmap.isNull())
painter.drawPixmap(QPoint(), d->pixmap);
drawContents(&painter);