Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Line(s) | 99 | QtLayouts.ColumnLayout { | |||
---|---|---|---|---|---|
195 | QtControls.Label { | 195 | QtControls.Label { | ||
196 | QtLayouts.Layout.fillWidth: true | 196 | QtLayouts.Layout.fillWidth: true | ||
197 | QtLayouts.Layout.fillHeight: true | 197 | QtLayouts.Layout.fillHeight: true | ||
198 | wrapMode: Text.Wrap | 198 | wrapMode: Text.Wrap | ||
199 | text: model.shortSummary.length > 0 ? model.shortSummary : model.summary | 199 | text: model.shortSummary.length > 0 ? model.shortSummary : model.summary | ||
200 | elide: Text.ElideRight | 200 | elide: Text.ElideRight | ||
201 | } | 201 | } | ||
202 | } | 202 | } | ||
203 | Item { | 203 | FeedbackOverlay { | ||
204 | anchors.fill: parent | | |||
205 | opacity: (model.status == NewStuff.ItemsModel.InstallingStatus || model.status == NewStuff.ItemsModel.UpdatingStatus) ? 1 : 0 | | |||
206 | Behavior on opacity { NumberAnimation { duration: Kirigami.Units.longDuration; } } | | |||
207 | Rectangle { | | |||
208 | anchors.fill: parent | 204 | anchors.fill: parent | ||
209 | color: Kirigami.Theme.backgroundColor | 205 | newStuffModel: component.GridView.view.model | ||
210 | opacity: 0.5; | | |||
211 | } | | |||
212 | QtControls.BusyIndicator { | | |||
213 | anchors.centerIn: parent | | |||
214 | running: parent.opacity > 0 | | |||
215 | } | | |||
216 | } | 206 | } | ||
217 | MouseArea { | 207 | MouseArea { | ||
218 | anchors.fill: parent; | 208 | anchors.fill: parent; | ||
219 | cursorShape: Qt.PointingHandCursor; | 209 | cursorShape: Qt.PointingHandCursor; | ||
220 | onClicked: component.showDetails(); | 210 | onClicked: component.showDetails(); | ||
221 | } | 211 | } | ||
222 | } | 212 | } | ||
223 | } | 213 | } |