Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/ItemGridDelegate.qml
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 27 | Item { | |||
---|---|---|---|---|---|
46 | function openActionMenu(x, y) { | 46 | function openActionMenu(x, y) { | ||
47 | var actionList = hasActionList ? model.actionList : []; | 47 | var actionList = hasActionList ? model.actionList : []; | ||
48 | Tools.fillActionMenu(i18n, actionMenu, actionList, GridView.view.model.favoritesModel, model.favoriteId); | 48 | Tools.fillActionMenu(i18n, actionMenu, actionList, GridView.view.model.favoritesModel, model.favoriteId); | ||
49 | actionMenu.visualParent = item; | 49 | actionMenu.visualParent = item; | ||
50 | actionMenu.open(x, y); | 50 | actionMenu.open(x, y); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | function actionTriggered(actionId, actionArgument) { | 53 | function actionTriggered(actionId, actionArgument) { | ||
54 | var close = Tools.triggerAction(GridView.view.model, model.index, actionId, actionArgument); | 54 | var close = (Tools.triggerAction(GridView.view.model, model.index, actionId, actionArgument) === true); | ||
55 | 55 | | |||
56 | if (close) { | 56 | if (close) { | ||
57 | root.toggle(); | 57 | root.toggle(); | ||
58 | } | 58 | } | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | PlasmaCore.IconItem { | 61 | PlasmaCore.IconItem { | ||
62 | id: icon | 62 | id: icon | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |