Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationsListPage.qml
Show All 39 Lines | 30 | DiscoverPage { | |||
---|---|---|---|---|---|
40 | property alias search: appsModel.search | 40 | property alias search: appsModel.search | ||
41 | property alias resourcesUrl: appsModel.resourcesUrl | 41 | property alias resourcesUrl: appsModel.resourcesUrl | ||
42 | property alias isBusy: appsModel.isBusy | 42 | property alias isBusy: appsModel.isBusy | ||
43 | property alias allBackends: appsModel.allBackends | 43 | property alias allBackends: appsModel.allBackends | ||
44 | property alias count: apps.count | 44 | property alias count: apps.count | ||
45 | property alias listHeader: apps.header | 45 | property alias listHeader: apps.header | ||
46 | property alias listHeaderPositioning: apps.headerPositioning | 46 | property alias listHeaderPositioning: apps.headerPositioning | ||
47 | property bool compact: page.width < 500 || !applicationWindow().wideScreen | 47 | property bool compact: page.width < 500 || !applicationWindow().wideScreen | ||
48 | property bool showRating: true | ||||
48 | 49 | | |||
49 | property bool canNavigate: true | 50 | property bool canNavigate: true | ||
50 | readonly property alias subcategories: appsModel.subcategories | 51 | readonly property alias subcategories: appsModel.subcategories | ||
51 | title: category ? category.name : "" | 52 | title: category ? category.name : "" | ||
52 | 53 | | |||
53 | signal clearSearch() | 54 | signal clearSearch() | ||
54 | 55 | | |||
55 | supportsRefreshing: true | 56 | supportsRefreshing: true | ||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 123 | model: ResourcesProxyModel { | |||
126 | onBusyChanged: if (isBusy) { | 127 | onBusyChanged: if (isBusy) { | ||
127 | apps.currentIndex = -1 | 128 | apps.currentIndex = -1 | ||
128 | } | 129 | } | ||
129 | } | 130 | } | ||
130 | currentIndex: -1 | 131 | currentIndex: -1 | ||
131 | delegate: ApplicationDelegate { | 132 | delegate: ApplicationDelegate { | ||
132 | application: model.application | 133 | application: model.application | ||
133 | compact: page.compact | 134 | compact: page.compact | ||
135 | showRating: page.showRating | ||||
134 | } | 136 | } | ||
135 | 137 | | |||
136 | QQC2.Label { | 138 | QQC2.Label { | ||
137 | anchors.centerIn: parent | 139 | anchors.centerIn: parent | ||
138 | opacity: apps.count == 0 && !appsModel.isBusy ? 0.3 : 0 | 140 | opacity: apps.count == 0 && !appsModel.isBusy ? 0.3 : 0 | ||
139 | Behavior on opacity { PropertyAnimation { duration: Kirigami.Units.longDuration; easing.type: Easing.InOutQuad; } } | 141 | Behavior on opacity { PropertyAnimation { duration: Kirigami.Units.longDuration; easing.type: Easing.InOutQuad; } } | ||
140 | text: i18n("Sorry, nothing found...") | 142 | text: i18n("Sorry, nothing found...") | ||
141 | } | 143 | } | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |