diff options
Diffstat (limited to 'src/quick/doc/snippets/qml')
| -rw-r--r-- | src/quick/doc/snippets/qml/propertychanges.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/quick/doc/snippets/qml/propertychanges.qml b/src/quick/doc/snippets/qml/propertychanges.qml index f9e6638f4b..1b5200692b 100644 --- a/src/quick/doc/snippets/qml/propertychanges.qml +++ b/src/quick/doc/snippets/qml/propertychanges.qml @@ -70,7 +70,12 @@ Item { states: State { name: "resized"; when: mouseArea.pressed - PropertyChanges { target: rect; color: "blue"; height: container.height } + PropertyChanges { + rect { + color: "blue" + height: container.height + } + } } } } @@ -88,7 +93,7 @@ Rectangle { states: State { name: "widerText" - PropertyChanges { target: myText; width: undefined } + PropertyChanges { myText.width: undefined } } } |
