diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2021-10-28 09:33:01 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-10-29 15:37:59 +0200 |
| commit | 9fc480db9a02b0f1084719cc676b976efda18013 (patch) | |
| tree | a712b65c14275a764729baeef897dce7a5f63e8d /src/quick/util/qquickanimation.cpp | |
| parent | 8591568c7522198181c7969847dd7211d470913f (diff) | |
Update PropertyChanges in src and tools
Use generalized grouped properties rather than the target/property
syntax.
Change-Id: I2cf42fa7933d67aa40ded5ffd00be51be8f9b7c2
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/quick/util/qquickanimation.cpp')
| -rw-r--r-- | src/quick/util/qquickanimation.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/quick/util/qquickanimation.cpp b/src/quick/util/qquickanimation.cpp index 1f067c4943..0a5e7f2b3e 100644 --- a/src/quick/util/qquickanimation.cpp +++ b/src/quick/util/qquickanimation.cpp @@ -2517,8 +2517,18 @@ void QQuickPropertyAnimation::setProperties(const QString &prop) Item { id: uselessItem } states: State { name: "state1" - PropertyChanges { target: theRect; x: 200; y: 200; z: 4 } - PropertyChanges { target: uselessItem; x: 10; y: 10; z: 2 } + PropertyChanges { + theRect { + x: 200 + y: 200 + z: 4 + } + uselessItem { + x: 10 + y: 10 + z: 2 + } + } } transitions: Transition { //animate both theRect's and uselessItem's x and y to their final values |
