QSplashScreen: Pass the layout direction set on widget to the painter
Change-Id: I6adc9f6fd77b6e9f9387393884e13285f4452018 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>bb10
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…
Reference in New Issue