diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-10-23 02:45:47 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-10-23 02:48:53 (GMT) |
commit | 3386479da9526f0ae8978cd9e0afdd0559049ef9 (patch) | |
tree | 4a76e50347e64527621e96b7ceb4bfe25e0eeb24 /demos/declarative | |
parent | 4890660acfc55db4e4e79375d562e729935092bd (diff) | |
download | Qt-3386479da9526f0ae8978cd9e0afdd0559049ef9.zip Qt-3386479da9526f0ae8978cd9e0afdd0559049ef9.tar.gz Qt-3386479da9526f0ae8978cd9e0afdd0559049ef9.tar.bz2 |
Update ScriptAction and StateChangeScript to use QmlScriptString.
Now you can assign the script you want to run to the property directly,
rather than assigning a string.
Task-number: QT-734
Diffstat (limited to 'demos/declarative')
-rw-r--r-- | demos/declarative/flickr/common/MediaLineEdit.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/declarative/flickr/common/MediaLineEdit.qml b/demos/declarative/flickr/common/MediaLineEdit.qml index f959bc5..b24b296 100644 --- a/demos/declarative/flickr/common/MediaLineEdit.qml +++ b/demos/declarative/flickr/common/MediaLineEdit.qml @@ -30,13 +30,13 @@ Item { focus: true } StateChangeScript { - script:"editor.selectAll()" + script:editor.selectAll() } }, State { // When returning to default state, typed text is propagated StateChangeScript { - script: "container.text = editor.text" + script: container.text = editor.text } } ] |