aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-10-28 09:34:00 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-11-03 09:14:48 +0100
commitd7862eac1b09f9fb28e540970d5cc98cb6479c52 (patch)
tree46ff6bc99d2b8aafcc60c766973a3e9c04529bdf /examples/qml
parent2a60d5eb1c06b9a3b36af324a8c44bdc0cb9d523 (diff)
Update examples to use new PropertyChanges
Also, prefer the multi-line syntax over ';'-separated bindings for readability. Change-Id: I3d6eb854e514ee257ca83773a11e6e9e10770bff Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/qml')
-rw-r--r--examples/qml/dynamicscene/dynamicscene.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/qml/dynamicscene/dynamicscene.qml b/examples/qml/dynamicscene/dynamicscene.qml
index 0775d7593e..6b127da1db 100644
--- a/examples/qml/dynamicscene/dynamicscene.qml
+++ b/examples/qml/dynamicscene/dynamicscene.qml
@@ -268,9 +268,11 @@ Item {
name: "Day"
when: window.activeSuns > 0
- PropertyChanges { target: gradientStopA; color: "DeepSkyBlue" }
- PropertyChanges { target: gradientStopB; color: "SkyBlue" }
- PropertyChanges { target: stars; opacity: 0 }
+ PropertyChanges {
+ gradientStopA.color: "DeepSkyBlue"
+ gradientStopB.color: "SkyBlue"
+ stars.opacity: 0
+ }
}
//! [top-level transitions]