diff options
author | Thomas Zander <tom@flowee.org> | 2022-10-15 11:52:10 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-02-21 08:20:56 +0000 |
commit | 6206ec3025ffcc021ca0a9f5e78c821758fc26e4 (patch) | |
tree | 937c081b64f63f0f500e4d3946a749b4b7483881 | |
parent | 8053d5de3a7db8a42778fc3bdd04685a253d489b (diff) |
Simplify dragNDrop example and remove unneeded alias
Change-Id: Ia0e5d5dc46a60b6d88864b3250f8cf91b03b897f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit 03b75a0baa0a77649ca3dca5f7ca17a46b96a2ac)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/quick/draganddrop/tiles/DropTile.qml | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/examples/quick/draganddrop/tiles/DropTile.qml b/examples/quick/draganddrop/tiles/DropTile.qml index 1d429a5a59..86fdbd86b3 100644 --- a/examples/quick/draganddrop/tiles/DropTile.qml +++ b/examples/quick/draganddrop/tiles/DropTile.qml @@ -8,7 +8,6 @@ DropArea { id: dragTarget property string colorKey - property alias dropProxy: dragTarget width: 64; height: 64 keys: [ colorKey ] @@ -17,16 +16,7 @@ DropArea { id: dropRectangle anchors.fill: parent - color: dragTarget.colorKey - - states: [ - State { - when: dragTarget.containsDrag - PropertyChanges { - dropRectangle.color: "grey" - } - } - ] + color: dragTarget.containsDrag ? "grey" : dragTarget.colorKey } } //! [0] |