Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ListItemBase.qml
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 69 | DragAndDrop.DragArea { | |||
---|---|---|---|---|---|
82 | 82 | | |||
83 | onDrop: { | 83 | onDrop: { | ||
84 | draggedStream = null; | 84 | draggedStream = null; | ||
85 | 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 && pressedButtons === Qt.LeftButton ? Qt.ClosedHandCursor : Qt.OpenHandCursor) : undefined | ||
91 | acceptedButtons: Qt.LeftButton | Qt.MiddleButton | ||||
92 | onClicked: { | ||||
93 | if (mouse.button === Qt.MiddleButton) { | ||||
94 | Muted = !Muted; | ||||
95 | } | ||||
96 | } | ||||
91 | } | 97 | } | ||
92 | } | 98 | } | ||
93 | } | 99 | } | ||
94 | 100 | | |||
95 | ColumnLayout { | 101 | ColumnLayout { | ||
96 | id: column | 102 | id: column | ||
97 | spacing: 1 | 103 | spacing: 1 | ||
98 | 104 | | |||
▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 218 | DragAndDrop.DropArea { | |||
221 | } | 227 | } | ||
222 | 228 | | |||
223 | onDrop: { | 229 | onDrop: { | ||
224 | draggedStream.deviceIndex = Index; | 230 | draggedStream.deviceIndex = Index; | ||
225 | } | 231 | } | ||
226 | } | 232 | } | ||
227 | 233 | | |||
228 | MouseArea { | 234 | MouseArea { | ||
229 | anchors.fill: parent | 235 | anchors { | ||
236 | fill: parent | ||||
237 | leftMargin: clientIcon.width | ||||
238 | } | ||||
230 | acceptedButtons: Qt.MiddleButton | 239 | acceptedButtons: Qt.MiddleButton | ||
231 | onClicked: Muted = !Muted | 240 | onClicked: Muted = !Muted | ||
232 | } | 241 | } | ||
233 | } | 242 | } | ||
234 | 243 | | |||
235 | PlasmaComponents.ContextMenu { | 244 | PlasmaComponents.ContextMenu { | ||
236 | id: contextMenu | 245 | id: contextMenu | ||
237 | 246 | | |||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |