Call the base QQuickItem geometryChanged function in our override.

Otherwise you get strange errors like the width/height of a
VideoOutput element are 0.

Change-Id: Ib123112b513f5ed2f0ce24da6dbfe00e20551d74
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
This commit is contained in:
Michael Goddard
2012-06-05 13:27:52 +10:00
committed by Qt by Nokia
parent 71e25920da
commit aae2e2104b

View File

@@ -662,6 +662,8 @@ void QDeclarativeVideoOutput::geometryChanged(const QRectF &newGeometry, const Q
Q_UNUSED(newGeometry); Q_UNUSED(newGeometry);
Q_UNUSED(oldGeometry); Q_UNUSED(oldGeometry);
QQuickItem::geometryChanged(newGeometry, oldGeometry);
// Explicitly listen to geometry changes here. This is needed since changing the position does // Explicitly listen to geometry changes here. This is needed since changing the position does
// not trigger a call to updatePaintNode(). // not trigger a call to updatePaintNode().
// We need to react to position changes though, as the window backened's display rect gets // We need to react to position changes though, as the window backened's display rect gets