Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/ItemListView.qml
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 137 | ListView { | |||
---|---|---|---|---|---|
162 | onCountChanged: { | 162 | onCountChanged: { | ||
163 | currentIndex = -1; | 163 | currentIndex = -1; | ||
164 | } | 164 | } | ||
165 | 165 | | |||
166 | onCurrentIndexChanged: { | 166 | onCurrentIndexChanged: { | ||
167 | if (currentIndex != -1) { | 167 | if (currentIndex != -1) { | ||
168 | if (childDialog) { | 168 | if (childDialog) { | ||
169 | if (currentItem && currentItem.hasChildren) { | 169 | if (currentItem && currentItem.hasChildren) { | ||
170 | childDialog.mainItem.width = itemList.minimumWidth; | ||||
170 | childDialog.model = model.modelForRow(currentIndex); | 171 | childDialog.model = model.modelForRow(currentIndex); | ||
171 | childDialog.visualParent = listView.currentItem; | 172 | childDialog.visualParent = listView.currentItem; | ||
172 | } else { | 173 | } else { | ||
173 | childDialog.delayedDestroy(); | 174 | childDialog.delayedDestroy(); | ||
174 | } | 175 | } | ||
175 | 176 | | |||
176 | return; | 177 | return; | ||
177 | } | 178 | } | ||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |