QWidget::render(): Add a call to QPaintEnginePrivate::systemStateChanged()
Setting the clip needs to be followed by a call to QPaintEnginePrivate::systemStateChanged() since the raster paint engine overrides the function to set some variables. Amends change 4ae1025c0b54a535ef9f50c6cdab5ef752b667dc. Task-number: QTBUG-44067 Task-number: QTBUG-56282 Task-number: QTBUG-55698 Change-Id: I7983ddd087deb484d9dbbf955eb1d6f903ef59fe Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
5058cad4a8
commit
eef70912bf
@ -5228,6 +5228,7 @@ void QWidget::render(QPainter *painter, const QPoint &targetOffset,
|
||||
enginePriv->setSystemViewport(oldSystemViewport);
|
||||
enginePriv->setSystemTransform(oldTransform);
|
||||
enginePriv->systemClip = oldSystemClip;
|
||||
enginePriv->systemStateChanged();
|
||||
|
||||
// Restore shared painter.
|
||||
d->setSharedPainter(oldPainter);
|
||||
|
Loading…
Reference in New Issue
Block a user