2
import Unity.Application 0.1
10
property bool cloned: false
11
property bool closeRequested: false
12
signal cloneRequested()
16
property real distanceX
17
property real distanceY
18
property bool dragging
21
var pos = mapToItem(root.target, mouseX, mouseY);
25
Mir.cursorName = "grabbing";
33
var pos = mapToItem(root.target.parent, mouseX, mouseY);
34
root.target.x = pos.x - distanceX;
35
root.target.y = pos.y - distanceY;
42
anchors.top: parent.top
43
anchors.bottom: parent.bottom
48
root.cloneRequested();
54
anchors.top: parent.top
55
anchors.bottom: parent.bottom
56
anchors.right: parent.right
59
fontSizeMode: Text.VerticalFit
60
minimumPixelSize: 10; font.pixelSize: 72
61
font.weight: Font.Bold
62
horizontalAlignment: Text.AlignRight
63
verticalAlignment: Text.AlignVCenter
67
root.closeRequested = true;