From aae2e2104b78117955305ff7d3b06741f4aee69e Mon Sep 17 00:00:00 2001 From: Michael Goddard Date: Tue, 5 Jun 2012 13:27:52 +1000 Subject: 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 --- src/imports/multimedia/qdeclarativevideooutput.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/imports/multimedia/qdeclarativevideooutput.cpp b/src/imports/multimedia/qdeclarativevideooutput.cpp index 8562390b7..418b4d4e1 100644 --- a/src/imports/multimedia/qdeclarativevideooutput.cpp +++ b/src/imports/multimedia/qdeclarativevideooutput.cpp @@ -662,6 +662,8 @@ void QDeclarativeVideoOutput::geometryChanged(const QRectF &newGeometry, const Q Q_UNUSED(newGeometry); Q_UNUSED(oldGeometry); + QQuickItem::geometryChanged(newGeometry, oldGeometry); + // Explicitly listen to geometry changes here. This is needed since changing the position does // not trigger a call to updatePaintNode(). // We need to react to position changes though, as the window backened's display rect gets -- cgit v1.2.3