diff options
Diffstat (limited to 'examples/multimedia/video/qmlvideo/qml/qmlvideo/main.qml')
-rw-r--r-- | examples/multimedia/video/qmlvideo/qml/qmlvideo/main.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/main.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/main.qml index eada51ba4..4289f79f1 100644 --- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/main.qml +++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/main.qml @@ -74,9 +74,10 @@ Rectangle { Connections { target: inner - onVisibleChanged: + function onVisibleChanged() { if (performanceLoader.item) performanceLoader.item.enabled = !inner.visible + } ignoreUnknownSignals: true } @@ -229,7 +230,7 @@ Rectangle { Connections { id: videoFramePaintedConnection - onVideoFramePainted: { + function onVideoFramePainted() { if (performanceLoader.item) performanceLoader.item.videoFramePainted() } |