Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/Task.qml
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 119 | onContainsMouseChanged: { | |||
---|---|---|---|---|---|
126 | } | 126 | } | ||
127 | 127 | | |||
128 | if (model.IsWindow === true) { | 128 | if (model.IsWindow === true) { | ||
129 | tasks.windowsHovered(model.WinIdList, containsMouse); | 129 | tasks.windowsHovered(model.WinIdList, containsMouse); | ||
130 | } | 130 | } | ||
131 | 131 | | |||
132 | } | 132 | } | ||
133 | 133 | | |||
134 | onPressAndHold: { | ||||
davidedmundson: This item also has drag and drop
Will the context menu open mid-way through dragging? | |||||
135 | if (model.IsLauncher === true) { | ||||
136 | showContextMenu({showAllPlaces: true}) | ||||
137 | } else { | ||||
138 | showContextMenu(); | ||||
139 | } | ||||
140 | } | ||||
141 | | ||||
134 | onPressed: { | 142 | onPressed: { | ||
135 | if (mouse.button == Qt.LeftButton || mouse.button == Qt.MidButton || mouse.button === Qt.BackButton || mouse.button === Qt.ForwardButton) { | 143 | if (mouse.button == Qt.LeftButton || mouse.button == Qt.MidButton || mouse.button === Qt.BackButton || mouse.button === Qt.ForwardButton) { | ||
136 | pressed = true; | 144 | pressed = true; | ||
137 | pressX = mouse.x; | 145 | pressX = mouse.x; | ||
138 | pressY = mouse.y; | 146 | pressY = mouse.y; | ||
139 | } else if (mouse.button == Qt.RightButton) { | 147 | } else if (mouse.button == Qt.RightButton) { | ||
140 | // When we're a launcher, there's no window controls, so we can show all | 148 | // When we're a launcher, there's no window controls, so we can show all | ||
141 | // places without the menu getting super huge. | 149 | // places without the menu getting super huge. | ||
▲ Show 20 Lines • Show All 446 Lines • Show Last 20 Lines |
This item also has drag and drop
Will the context menu open mid-way through dragging?