Changeset View
Changeset View
Standalone View
Standalone View
windowswitchers/big_icons/contents/ui/main.qml
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 38 | mainItem: Item { | |||
---|---|---|---|---|---|
105 | * @li we have to emit the change signal | 105 | * @li we have to emit the change signal | ||
106 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | 106 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | ||
107 | **/ | 107 | **/ | ||
108 | Keys.onPressed: { | 108 | Keys.onPressed: { | ||
109 | if (event.key == Qt.Key_Left) { | 109 | if (event.key == Qt.Key_Left) { | ||
110 | icons.decrementCurrentIndex(); | 110 | icons.decrementCurrentIndex(); | ||
111 | } else if (event.key == Qt.Key_Right) { | 111 | } else if (event.key == Qt.Key_Right) { | ||
112 | icons.incrementCurrentIndex(); | 112 | icons.incrementCurrentIndex(); | ||
113 | } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { | ||||
114 | model.close(currentIndex) | ||||
113 | } | 115 | } | ||
114 | } | 116 | } | ||
115 | } | 117 | } | ||
116 | } | 118 | } | ||
117 | } | 119 | } |