Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationsListPage.qml
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 63 | ListView { | |||
---|---|---|---|---|---|
64 | id: apps | 64 | id: apps | ||
65 | section.delegate: QQC2.Label { | 65 | section.delegate: QQC2.Label { | ||
66 | text: section | 66 | text: section | ||
67 | anchors { | 67 | anchors { | ||
68 | right: parent.right | 68 | right: parent.right | ||
69 | } | 69 | } | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | headerPositioning: ListView.OverlayHeader | | |||
73 | header: CategoryDisplay { | | |||
74 | id: header | | |||
75 | category: appsModel.filteredCategory | | |||
76 | search: appsModel.search | | |||
77 | extra: page.listHeaderExtra | | |||
78 | } | | |||
79 | model: ResourcesProxyModel { | 72 | model: ResourcesProxyModel { | ||
80 | id: appsModel | 73 | id: appsModel | ||
81 | sortRole: ResourcesProxyModel.RatingCountRole | 74 | sortRole: ResourcesProxyModel.RatingCountRole | ||
82 | sortOrder: Qt.DescendingOrder | 75 | sortOrder: Qt.DescendingOrder | ||
83 | onBusyChanged: if (isBusy) { | 76 | onBusyChanged: if (isBusy) { | ||
84 | apps.currentIndex = -1 | 77 | apps.currentIndex = -1 | ||
85 | } | 78 | } | ||
86 | } | 79 | } | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |