aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/draganddrop/tiles/DropTile.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/draganddrop/tiles/DropTile.qml')
-rw-r--r--examples/quick/draganddrop/tiles/DropTile.qml15
1 files changed, 3 insertions, 12 deletions
diff --git a/examples/quick/draganddrop/tiles/DropTile.qml b/examples/quick/draganddrop/tiles/DropTile.qml
index 1d429a5a59..409c3801e4 100644
--- a/examples/quick/draganddrop/tiles/DropTile.qml
+++ b/examples/quick/draganddrop/tiles/DropTile.qml
@@ -8,25 +8,16 @@ DropArea {
id: dragTarget
property string colorKey
- property alias dropProxy: dragTarget
- width: 64; height: 64
+ width: 64
+ height: 64
keys: [ colorKey ]
Rectangle {
id: dropRectangle
anchors.fill: parent
- color: dragTarget.colorKey
-
- states: [
- State {
- when: dragTarget.containsDrag
- PropertyChanges {
- dropRectangle.color: "grey"
- }
- }
- ]
+ color: dragTarget.containsDrag ? "grey" : dragTarget.colorKey
}
}
//! [0]