Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/Task.qml
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | 113 | if (mouse.button == Qt.MidButton) { | |||
---|---|---|---|---|---|
114 | if (plasmoid.configuration.middleClickAction == TaskManagerApplet.Backend.NewInstance) { | 114 | if (plasmoid.configuration.middleClickAction == TaskManagerApplet.Backend.NewInstance) { | ||
115 | tasksModel.requestNewInstance(modelIndex()); | 115 | tasksModel.requestNewInstance(modelIndex()); | ||
116 | } else if (plasmoid.configuration.middleClickAction == TaskManagerApplet.Backend.Close) { | 116 | } else if (plasmoid.configuration.middleClickAction == TaskManagerApplet.Backend.Close) { | ||
117 | tasksModel.requestClose(modelIndex()); | 117 | tasksModel.requestClose(modelIndex()); | ||
118 | } else if (plasmoid.configuration.middleClickAction == TaskManagerApplet.Backend.ToggleMinimized) { | 118 | } else if (plasmoid.configuration.middleClickAction == TaskManagerApplet.Backend.ToggleMinimized) { | ||
119 | tasksModel.requestToggleMinimized(modelIndex()); | 119 | tasksModel.requestToggleMinimized(modelIndex()); | ||
120 | } | 120 | } | ||
121 | } else if (mouse.button == Qt.LeftButton) { | 121 | } else if (mouse.button == Qt.LeftButton) { | ||
122 | TaskTools.activateTask(modelIndex(), model, mouse.modifiers); | 122 | TaskTools.activateTask(modelIndex(), model, mouse.modifiers, task); | ||
123 | } | 123 | } | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | pressed = false; | 126 | pressed = false; | ||
127 | pressX = -1; | 127 | pressX = -1; | ||
128 | pressY = -1; | 128 | pressY = -1; | ||
129 | } | 129 | } | ||
130 | 130 | | |||
Show All 25 Lines | |||||
156 | TaskManagerApplet.SmartLauncherItem { }", task); | 156 | TaskManagerApplet.SmartLauncherItem { }", task); | ||
157 | 157 | | |||
158 | smartLauncher.launcherUrl = Qt.binding(function() { return model.LauncherUrlWithoutIcon; }); | 158 | smartLauncher.launcherUrl = Qt.binding(function() { return model.LauncherUrlWithoutIcon; }); | ||
159 | 159 | | |||
160 | smartLauncherItem = smartLauncher; | 160 | smartLauncherItem = smartLauncher; | ||
161 | } | 161 | } | ||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | Keys.onReturnPressed: TaskTools.activateTask(modelIndex(), model, event.modifiers) | 164 | Keys.onReturnPressed: TaskTools.activateTask(modelIndex(), model, event.modifiers, task) | ||
165 | Keys.onEnterPressed: Keys.onReturnPressed(event); | 165 | Keys.onEnterPressed: Keys.onReturnPressed(event); | ||
166 | 166 | | |||
167 | function modelIndex() { | 167 | function modelIndex() { | ||
168 | return (inPopup ? tasksModel.makeModelIndex(groupDialog.visualParent.itemIndex, index) | 168 | return (inPopup ? tasksModel.makeModelIndex(groupDialog.visualParent.itemIndex, index) | ||
169 | : tasksModel.makeModelIndex(index)); | 169 | : tasksModel.makeModelIndex(index)); | ||
170 | } | 170 | } | ||
171 | 171 | | |||
172 | Component { | 172 | Component { | ||
▲ Show 20 Lines • Show All 305 Lines • Show Last 20 Lines |