Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/main.qml
Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Line(s) | 52 | //END TODO | |||
---|---|---|---|---|---|
383 | } | 383 | } | ||
384 | 384 | | |||
385 | function addLauncher(url) { | 385 | function addLauncher(url) { | ||
386 | if (plasmoid.immutability !== PlasmaCore.Types.SystemImmutable) { | 386 | if (plasmoid.immutability !== PlasmaCore.Types.SystemImmutable) { | ||
387 | tasksModel.requestAddLauncher(url); | 387 | tasksModel.requestAddLauncher(url); | ||
388 | } | 388 | } | ||
389 | } | 389 | } | ||
390 | 390 | | |||
391 | // This is called by plasmashell in response to a Meta+number shortcut. | ||||
392 | function activateTaskAtIndex(index) { | ||||
393 | if (typeof index !== "number") { | ||||
394 | return; | ||||
395 | } | ||||
396 | | ||||
397 | var task = taskRepeater.itemAt(index); | ||||
398 | if (task) { | ||||
399 | TaskTools.activateTask(task.modelIndex(), task.m, null, task); | ||||
400 | } | ||||
401 | } | ||||
402 | | ||||
391 | function resetDragSource() { | 403 | function resetDragSource() { | ||
392 | dragSource = null; | 404 | dragSource = null; | ||
393 | } | 405 | } | ||
394 | 406 | | |||
395 | function createContextMenu(task) { | 407 | function createContextMenu(task) { | ||
396 | var menu = tasks.contextMenuComponent.createObject(task); | 408 | var menu = tasks.contextMenuComponent.createObject(task); | ||
397 | menu.visualParent = task; | 409 | menu.visualParent = task; | ||
398 | menu.mpris2Source = mpris2Source; | 410 | menu.mpris2Source = mpris2Source; | ||
Show All 11 Lines |