From d7862eac1b09f9fb28e540970d5cc98cb6479c52 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 28 Oct 2021 09:34:00 +0200 Subject: Update examples to use new PropertyChanges Also, prefer the multi-line syntax over ';'-separated bindings for readability. Change-Id: I3d6eb854e514ee257ca83773a11e6e9e10770bff Reviewed-by: Mitch Curtis --- examples/qml/dynamicscene/dynamicscene.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/qml') 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] -- cgit v1.2.3