summaryrefslogtreecommitdiff
path: root/examples/quick
diff options
context:
space:
mode:
authorThomas Zander <tom@flowee.org>2022-10-15 11:52:10 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2023-02-21 06:02:19 +0000
commit03b75a0baa0a77649ca3dca5f7ca17a46b96a2ac (patch)
treea7a0a1f9f79680ea741028b41442f3840f5760b2 /examples/quick
parent7ef3bee4f275736abb716505a93cdc5ddadff36b (diff)
downloadqtdeclarative-03b75a0baa0a77649ca3dca5f7ca17a46b96a2ac.tar.gz
Simplify dragNDrop example and remove unneeded alias
Pick-to: 6.2 6.4 6.5 Change-Id: Ia0e5d5dc46a60b6d88864b3250f8cf91b03b897f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/draganddrop/tiles/DropTile.qml12
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]