diff options
| author | Andreas Eliasson <andreas.eliasson@qt.io> | 2025-10-16 13:03:34 +0200 |
|---|---|---|
| committer | Andreas Eliasson <andreas.eliasson@qt.io> | 2025-10-29 16:50:48 +0000 |
| commit | be4c7d13729dbc6c7dcd2e42ae25a57f7a1b30f6 (patch) | |
| tree | 69e8ddea9e236a81b01c4dede75eab7fe2d8efcf /src/quick/doc/snippets/qml/states.qml | |
| parent | 8a65f87fc1e491216de5bac047d218a074340ef9 (diff) | |
Doc: Fix qml lint binding warnings
These snippets show up in the Qt Quick States documentation.
Fixes: QTBUG-140487
Pick-to: 6.10
Change-Id: I897865e16a356c1c561715adc4daa97a4bd3dd67
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/doc/snippets/qml/states.qml')
| -rw-r--r-- | src/quick/doc/snippets/qml/states.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/quick/doc/snippets/qml/states.qml b/src/quick/doc/snippets/qml/states.qml index 426ce3be4f..d412eb53f8 100644 --- a/src/quick/doc/snippets/qml/states.qml +++ b/src/quick/doc/snippets/qml/states.qml @@ -25,13 +25,13 @@ Rectangle { states: [ State { name: "NORMAL" - PropertyChanges { target: signal; color: "green"} - PropertyChanges { target: flag; state: "FLAG_DOWN"} + PropertyChanges { signal.color: "green"} + PropertyChanges { flag.state: "FLAG_DOWN"} }, State { name: "CRITICAL" - PropertyChanges { target: signal; color: "red"} - PropertyChanges { target: flag; state: "FLAG_UP"} + PropertyChanges { signal.color: "red"} + PropertyChanges { flag.state: "FLAG_UP"} } ] } @@ -64,7 +64,7 @@ Rectangle { states: State { name: "RINGING" when: (signal.state == "CRITICAL") - PropertyChanges {target: speaker; play: "RING!"} + PropertyChanges {speaker.play: "RING!"} } } //![when property] |
