summaryrefslogtreecommitdiffstats
path: root/examples/video/qmlvideofx/qml/qmlvideofx/Content.qml
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2012-02-08 15:32:14 +0000
committerQt by Nokia <qt-info@nokia.com>2012-02-08 22:34:08 +0100
commit5c0629b5711b1f349dd7f4add7a61d75bdf5b222 (patch)
tree3e1bba00594f6f40467dcdd0344bd3f13598664f /examples/video/qmlvideofx/qml/qmlvideofx/Content.qml
parentc1ec175b24bde1523fcbd7e33d0f46f3bbc1def9 (diff)
Enable qmlvideofx window to be resized, when large screen layout used
Change-Id: I3010b9fd5f68e922ff94edd4d08d8114c689c037 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'examples/video/qmlvideofx/qml/qmlvideofx/Content.qml')
-rw-r--r--examples/video/qmlvideofx/qml/qmlvideofx/Content.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/video/qmlvideofx/qml/qmlvideofx/Content.qml b/examples/video/qmlvideofx/qml/qmlvideofx/Content.qml
index ae96a7753..fa3da9378 100644
--- a/examples/video/qmlvideofx/qml/qmlvideofx/Content.qml
+++ b/examples/video/qmlvideofx/qml/qmlvideofx/Content.qml
@@ -82,6 +82,16 @@ Rectangle {
ignoreUnknownSignals: true
}
+ onWidthChanged: {
+ if (effectLoader.item)
+ effectLoader.item.targetWidth = root.width
+ }
+
+ onHeightChanged: {
+ if (effectLoader.item)
+ effectLoader.item.targetHeight = root.height
+ }
+
onEffectSourceChanged: {
console.log("[qmlvideofx] Content.onEffectSourceChanged " + effectSource)
effectLoader.source = effectSource