show dnd status in widget

This commit is contained in:
Sebastian Kügler 2013-03-06 01:28:26 +01:00
parent adc838008b
commit c777215222

View File

@ -57,11 +57,17 @@ PlasmaComponents.Page {
anchors { right: parent.right; bottom: parent.bottom; top: parent.top; }
Rectangle { anchors.fill: parent; color: "green"; opacity: 0.2; }
onDrop: print("drop");
onDragEnter: print("enter");
onDragLeave: print("leave");
onDrop: slabel.text = "item dropped"
onDragEnter: slabel.text = "drop item here"
onDragLeave: slabel.text = "drop left"
}
PlasmaExtras.Heading {
id: slabel
level: 3
text: "drag from left to right field."
onTextChanged: print("droparea changed to " + text)
anchors { right: parent.right; bottom: parent.bottom; }
}
}
// QtExtras.MouseEventListener {
// id: mel