diff --git a/src/shell/applets/testcomponentsapplet/contents/ui/DragPage.qml b/src/shell/applets/testcomponentsapplet/contents/ui/DragPage.qml index d152a8032..1947d6f96 100644 --- a/src/shell/applets/testcomponentsapplet/contents/ui/DragPage.qml +++ b/src/shell/applets/testcomponentsapplet/contents/ui/DragPage.qml @@ -43,9 +43,36 @@ PlasmaComponents.Page { Item { anchors { left: parent.left; right: parent.right; top: dlabel.bottom; bottom: parent.bottom; } + Item { + anchors { left: parent.left; top: parent.top; right: dropArea.left; bottom: dragArea2.top; } + + PlasmaCore.IconItem { + id: akonadiIcon + source: "akonadi" + width: _h + height: width + anchors.centerIn: parent + } + + DragAndDrop.DragArea { + anchors { fill: parent; } + + mimeData.url: "http://plasma.kde.org" + delegate: akonadiIcon + + //delegate: Rectangle { width: 64; height: 64; color: "yellow"; opacity: 0.6; } + + onDragStarted: print("akonadidrag started"); + onDrop: print("drop: " + action); + + } + Rectangle { color: "yellow"; opacity: 0.2; anchors.fill: parent; } + } DragAndDrop.DragArea { + id: dragArea2 width: parent.width / 2 - anchors { left: parent.left; bottom: parent.bottom; top: parent.top; } + height: dropArea.height / 2 + anchors { left: parent.left; bottom: parent.bottom; } mimeData.text: "Clownfish" mimeData.html: "
Primus->perform();