From 06e23491fb59f834f897cded38c38e04691030a4 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 13 Mar 2015 13:50:13 +0100 Subject: [PATCH] show a placeholder when dragging --- .../homescreen/contents/ui/HomeLauncher.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/containments/homescreen/contents/ui/HomeLauncher.qml b/containments/homescreen/contents/ui/HomeLauncher.qml index 57131196..097fd87b 100644 --- a/containments/homescreen/contents/ui/HomeLauncher.qml +++ b/containments/homescreen/contents/ui/HomeLauncher.qml @@ -11,6 +11,18 @@ Item { property int idx: index property int oldIdx: -1 + Rectangle { + anchors.fill: parent + color: PlasmaCore.ColorScope.textColor + radius: units.gridUnit + opacity: (delegateItem.drag.target != null) ? 0.4 : 0 + Behavior on opacity { + NumberAnimation { + duration: units.longDuration + easing.type: Easing.InOutQuad + } + } + } //animate index change onIdxChanged: { if (delegateItem.drag.target != null) { @@ -51,6 +63,10 @@ Item { target: delegateItem parent: delegateRoot.parent } + PropertyChanges { + target: delegateItem + z: 9999 + } } ] function updateRow() {