We need to update the texture pointer in the scene graph node
when the imagedata has changed.
Change-Id: I0246626d3ebb66db9c5cf85fb1c2034ed233984f
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Q_D(QQuickBorderImage);
d->pixmapChanged = true;
+
+ // When the pixmap changes, such as being deleted, we need to update the textures
+ update();
}
QT_END_NAMESPACE
updatePaintedGeometry();
d->pixmapChanged = true;
- // Make sure we update the texture provider when the image has changed.
- if (d->provider)
- update();
+ // When the pixmap changes, such as being deleted, we need to update the textures
+ update();
}
QQuickImage::VAlignment QQuickImage::verticalAlignment() const