Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationsListPage.qml
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 115 | section.delegate: QQC2.Label { | |||
---|---|---|---|---|---|
116 | text: section | 116 | text: section | ||
117 | anchors { | 117 | anchors { | ||
118 | right: parent.right | 118 | right: parent.right | ||
119 | } | 119 | } | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | model: ResourcesProxyModel { | 122 | model: ResourcesProxyModel { | ||
123 | id: appsModel | 123 | id: appsModel | ||
124 | sortRole: ResourcesProxyModel.ReleaseDateRole | 124 | sortRole: ResourcesProxyModel.SortableRatingRole | ||
125 | sortOrder: search.length>0 ? Qt.AscendingOrder : Qt.DescendingOrder | 125 | sortOrder: Qt.DescendingOrder | ||
126 | onBusyChanged: if (isBusy) { | 126 | onBusyChanged: if (isBusy) { | ||
127 | apps.currentIndex = -1 | 127 | apps.currentIndex = -1 | ||
128 | } | 128 | } | ||
129 | } | 129 | } | ||
130 | currentIndex: -1 | 130 | currentIndex: -1 | ||
131 | delegate: ApplicationDelegate { | 131 | delegate: ApplicationDelegate { | ||
132 | application: model.application | 132 | application: model.application | ||
133 | compact: page.compact | 133 | compact: page.compact | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |