Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/items/AbstractItem.qml
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 102 | MouseArea { | |||
---|---|---|---|---|---|
107 | acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton | 107 | acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton | ||
108 | onClicked: abstractItem.clicked(mouse) | 108 | onClicked: abstractItem.clicked(mouse) | ||
109 | onPressed: { | 109 | onPressed: { | ||
110 | abstractItem.hideToolTip() | 110 | abstractItem.hideToolTip() | ||
111 | if (mouse.button === Qt.RightButton) { | 111 | if (mouse.button === Qt.RightButton) { | ||
112 | abstractItem.contextMenu(mouse) | 112 | abstractItem.contextMenu(mouse) | ||
113 | } | 113 | } | ||
114 | } | 114 | } | ||
115 | onPressAndHold: { | ||||
116 | abstractItem.contextMenu(mouse) | ||||
117 | } | ||||
115 | onWheel: { | 118 | onWheel: { | ||
116 | abstractItem.wheel(wheel); | 119 | abstractItem.wheel(wheel); | ||
117 | //Don't accept the event in order to make the scrolling by mouse wheel working | 120 | //Don't accept the event in order to make the scrolling by mouse wheel working | ||
118 | //for the parent scrollview this icon is in. | 121 | //for the parent scrollview this icon is in. | ||
119 | wheel.accepted = false; | 122 | wheel.accepted = false; | ||
120 | } | 123 | } | ||
121 | } | 124 | } | ||
122 | 125 | | |||
Show All 18 Lines |