diff options
author | Andy Shaw <andy.shaw@qt.io> | 2018-07-10 09:44:19 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2018-07-10 15:23:52 +0000 |
commit | 50be124f169f26ba5c94515f520b018e7fbe7da4 (patch) | |
tree | 1bfcc2d54069c8053a654017d48ebf442e3c1f7a | |
parent | 94a65fb23210a60e286de0f13a6f31af475f1950 (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.cpp | 1 |
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); |