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>
This commit is contained in:
Gareth Stockwell
2011-12-20 13:51:34 +00:00
committed by Qt by Nokia
parent febe398400
commit 9092b1ae46
29 changed files with 225 additions and 222 deletions

View File

@@ -43,8 +43,9 @@ import QtQuick 2.0
ShaderEffect {
property variant source
property int numParameters: 0
property bool supportsDivider: false
property ListModel parameters: ListModel { }
property bool divider: true
property real dividerValue: 0.5
property real targetWidth: 0
property real targetHeight: 0
property string fragmentShaderFilename