Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/IconGridDelegate.qml
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 28 | MouseArea { | |||
---|---|---|---|---|---|
110 | } | 110 | } | ||
111 | onClicked: (mouse) => { | 111 | onClicked: (mouse) => { | ||
112 | iconGrid.currentIndex = index; | 112 | iconGrid.currentIndex = index; | ||
113 | iconGrid.forceActiveFocus(); | 113 | iconGrid.forceActiveFocus(); | ||
114 | if (mouse.button == Qt.RightButton) { | 114 | if (mouse.button == Qt.RightButton) { | ||
115 | cuttlefish.itemRightClicked() | 115 | cuttlefish.itemRightClicked() | ||
116 | } | 116 | } | ||
117 | } | 117 | } | ||
118 | onEntered: { | | |||
119 | setAsPreview(); | | |||
120 | } | | |||
121 | } | 118 | } |