summaryrefslogtreecommitdiffstats
path: root/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@accenture.com>2011-12-20 13:51:34 +0000
committerQt by Nokia <qt-info@nokia.com>2011-12-22 02:29:18 +0100
commit9092b1ae46d999fb8b971386905d64eba4f9b60d (patch)
tree4a7eac0c1bd5023f32475d90a3c2b242ce9225fa /examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
parentfebe3984003dcd9313ae451ee2cc23ac15630977 (diff)
Express qmlvideofx effect parameters declaratively
Each effect item now exposes a ListModel property which describes the set of user-controllable parameters. This model is used by the ParameterPanel component to generate a ListView whose delegate displays the parameter name and a slider. Change-Id: Ib26877fe434d8b746ef621e0b4adbcbe1ed9aaa8 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml')
-rw-r--r--examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml14
1 files changed, 3 insertions, 11 deletions
diff --git a/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml b/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
index 0c24d0dc2..a1a725162 100644
--- a/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
+++ b/examples/video/qmlvideofx/qml/qmlvideofx/main-largescreen.qml
@@ -94,15 +94,12 @@ Rectangle {
ParameterPanel {
id: parameterPanel
- enabled: numParameters >= 1
- numParameters: content.effect ? content.effect.numParameters : 0
anchors {
- top: content.bottom
left: parent.left
bottom: parent.bottom
+ right: effectSelectionPanel.left
+ margins: 20
}
- width: content.width
- onParam1ValueChanged: updateParameters()
}
EffectSelectionPanel {
@@ -117,7 +114,7 @@ Rectangle {
itemHeight: 40
onEffectSourceChanged: {
content.effectSource = effectSource
- updateParameters()
+ parameterPanel.model = content.effect.parameters
}
}
@@ -160,11 +157,6 @@ Rectangle {
performanceLoader.item.qmlFramePainted()
}
- function updateParameters() {
- if (content.effect.numParameters >= 1)
- content.effect.param1Value = parameterPanel.param1Value
- }
-
function openImage() {
d.openFileType = "image"
showFileBrowser("../../images")