Changeset View
Changeset View
Standalone View
Standalone View
applets/kickoff/package/contents/ui/KickoffListView.qml
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 104 | onPressed: { | |||
---|---|---|---|---|---|
107 | 107 | | |||
108 | if (!item) { | 108 | if (!item) { | ||
109 | return; | 109 | return; | ||
110 | } | 110 | } | ||
111 | 111 | | |||
112 | if (mouse.buttons & Qt.RightButton) { | 112 | if (mouse.buttons & Qt.RightButton) { | ||
113 | if (item.hasActionList) { | 113 | if (item.hasActionList) { | ||
114 | mapped = listView.contentItem.mapToItem(item, mapped.x, mapped.y); | 114 | mapped = listView.contentItem.mapToItem(item, mapped.x, mapped.y); | ||
115 | openActionMenu(mapped.x, mapped.y); | 115 | listView.currentItem.openActionMenu(mapped.x, mapped.y); | ||
116 | } | 116 | } | ||
117 | } else { | 117 | } else { | ||
118 | pressed = item; | 118 | pressed = item; | ||
119 | pressX = mouse.x; | 119 | pressX = mouse.x; | ||
120 | pressY = mouse.y; | 120 | pressY = mouse.y; | ||
121 | } | 121 | } | ||
122 | } | 122 | } | ||
123 | 123 | | |||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |