Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/RunnerResultsList.qml
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 71 | ItemListView { | |||
---|---|---|---|---|---|
90 | model: runnerModel.modelForRow(index) | 90 | model: runnerModel.modelForRow(index) | ||
91 | 91 | | |||
92 | onModelChanged: { | 92 | onModelChanged: { | ||
93 | if (model == undefined || model == null) { | 93 | if (model == undefined || model == null) { | ||
94 | enabled: false; | 94 | enabled: false; | ||
95 | visible: false; | 95 | visible: false; | ||
96 | } | 96 | } | ||
97 | } | 97 | } | ||
98 | | ||||
99 | onCountChanged: { | ||||
100 | if (index == 0 && searchField.focus) { | ||||
101 | currentIndex = 0; | ||||
102 | } | ||||
103 | } | ||||
98 | } | 104 | } | ||
99 | 105 | | |||
100 | Component.onCompleted: { | 106 | Component.onCompleted: { | ||
101 | runnerMatches.keyNavigationAtListEnd.connect(keyNavigationAtListEnd); | 107 | runnerMatches.keyNavigationAtListEnd.connect(keyNavigationAtListEnd); | ||
102 | } | 108 | } | ||
103 | } | 109 | } |