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:
Friedemann Kleint 2017-07-26 14:03:54 +02:00
parent 5058cad4a8
commit eef70912bf

View File

@ -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);