Changeset View
Changeset View
Standalone View
Standalone View
windowswitchers/informative/contents/ui/main.qml
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | 118 | ListView { | |||
---|---|---|---|---|---|
180 | highlightMoveDuration: 0 | 180 | highlightMoveDuration: 0 | ||
181 | highlightResizeDuration: 0 | 181 | highlightResizeDuration: 0 | ||
182 | boundsBehavior: Flickable.StopAtBounds | 182 | boundsBehavior: Flickable.StopAtBounds | ||
183 | Connections { | 183 | Connections { | ||
184 | target: tabBox | 184 | target: tabBox | ||
185 | onCurrentIndexChanged: {listView.currentIndex = tabBox.currentIndex;} | 185 | onCurrentIndexChanged: {listView.currentIndex = tabBox.currentIndex;} | ||
186 | } | 186 | } | ||
187 | } | 187 | } | ||
188 | } | 188 | | ||
189 | /* | 189 | /* | ||
190 | * Key navigation on outer item for two reasons: | 190 | * Key navigation on outer item for two reasons: | ||
191 | * @li we have to emit the change signal | 191 | * @li we have to emit the change signal | ||
192 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | 192 | * @li on multiple invocation it does not work on the list view. Focus seems to be lost. | ||
193 | **/ | 193 | **/ | ||
194 | Keys.onPressed: { | 194 | Keys.onPressed: { | ||
195 | if (event.key == Qt.Key_Up) { | 195 | if (event.key == Qt.Key_Up) { | ||
196 | listView.decrementCurrentIndex(); | 196 | listView.decrementCurrentIndex(); | ||
197 | } else if (event.key == Qt.Key_Down) { | 197 | } else if (event.key == Qt.Key_Down) { | ||
198 | listView.incrementCurrentIndex(); | 198 | listView.incrementCurrentIndex(); | ||
199 | } | 199 | } | ||
200 | } | 200 | } | ||
201 | } | 201 | } | ||
202 | } | 202 | } | ||
203 | } |