QSplashScreen: Pass the layout direction set on widget to the painter
Change-Id: I6adc9f6fd77b6e9f9387393884e13285f4452018 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
94a65fb232
commit
50be124f16
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user