diff options
Diffstat (limited to 'examples/multimedia/video/qmlvideo')
-rw-r--r-- | examples/multimedia/video/qmlvideo/qml/qmlvideo/Content.qml | 4 | ||||
-rw-r--r-- | examples/multimedia/video/qmlvideo/qml/qmlvideo/main.qml | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/Content.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/Content.qml index 22ebca382..803f7fff3 100644 --- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/Content.qml +++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/Content.qml @@ -74,7 +74,7 @@ Rectangle { Connections { id: framePaintedConnection - onFramePainted: { + function onFramePainted() { if (frameRateLoader.item) frameRateLoader.item.notify() root.videoFramePainted() @@ -84,7 +84,7 @@ Rectangle { Connections { id: errorConnection - onFatalError: { + function onFatalError() { console.log("[qmlvideo] Content.onFatalError") stop() root.error() 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() } |