Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/private/entrygriddelegates/TileDelegate.qml
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | 105 | QtLayouts.GridLayout { | |||
---|---|---|---|---|---|
193 | } | 193 | } | ||
194 | Kirigami.Heading { | 194 | Kirigami.Heading { | ||
195 | QtLayouts.Layout.fillWidth: true | 195 | QtLayouts.Layout.fillWidth: true | ||
196 | level: 5 | 196 | level: 5 | ||
197 | elide: Text.ElideRight | 197 | elide: Text.ElideRight | ||
198 | text: i18nc("The number of times the item has been downloaded", "%1 downloads").arg(model.downloadCount) | 198 | text: i18nc("The number of times the item has been downloaded", "%1 downloads").arg(model.downloadCount) | ||
199 | } | 199 | } | ||
200 | } | 200 | } | ||
201 | Item { | 201 | FeedbackOverlay { | ||
202 | anchors.fill: parent | | |||
203 | opacity: (model.status == NewStuff.ItemsModel.InstallingStatus || model.status == NewStuff.ItemsModel.UpdatingStatus) ? 1 : 0 | | |||
204 | Behavior on opacity { NumberAnimation { duration: Kirigami.Units.longDuration; } } | | |||
205 | Rectangle { | | |||
206 | anchors.fill: parent | 202 | anchors.fill: parent | ||
207 | color: Kirigami.Theme.backgroundColor | 203 | newStuffModel: component.GridView.view.model | ||
208 | opacity: 0.5; | | |||
209 | } | | |||
210 | QtControls.BusyIndicator { | | |||
211 | anchors.centerIn: parent | | |||
212 | running: parent.opacity > 0 | | |||
213 | } | | |||
214 | } | 204 | } | ||
215 | MouseArea { | 205 | MouseArea { | ||
216 | anchors.fill: parent; | 206 | anchors.fill: parent; | ||
217 | cursorShape: Qt.PointingHandCursor; | 207 | cursorShape: Qt.PointingHandCursor; | ||
218 | onClicked: component.showDetails(); | 208 | onClicked: component.showDetails(); | ||
219 | } | 209 | } | ||
220 | } | 210 | } | ||
221 | } | 211 | } |