Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ListItemBase.qml
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 69 | DragAndDrop.DragArea { | |||
---|---|---|---|---|---|
72 | delegate: parent | 72 | delegate: parent | ||
73 | 73 | | |||
74 | mimeData { | 74 | mimeData { | ||
75 | source: item | 75 | source: item | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | onDragStarted: { | 78 | onDragStarted: { | ||
79 | draggedStream = PulseObject; | 79 | draggedStream = PulseObject; | ||
80 | main.beginMoveStream(type == "sink-input" ? "sink" : "source"); | 80 | beginMoveStream(type == "sink-input" ? "sink" : "source"); | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | onDrop: { | 83 | onDrop: { | ||
84 | draggedStream = null; | 84 | draggedStream = null; | ||
85 | main.endMoveStream(); | 85 | endMoveStream(); | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | MouseArea { | 88 | MouseArea { | ||
89 | anchors.fill: parent | 89 | anchors.fill: parent | ||
90 | cursorShape: dragArea.enabled ? (pressed ? Qt.ClosedHandCursor : Qt.OpenHandCursor) : undefined | 90 | cursorShape: dragArea.enabled ? (pressed ? Qt.ClosedHandCursor : Qt.OpenHandCursor) : undefined | ||
91 | } | 91 | } | ||
92 | } | 92 | } | ||
93 | } | 93 | } | ||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |