Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/private/entrygriddelegates/ThumbDelegate.qml
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 112 | anchors { | |||
---|---|---|---|---|---|
113 | top: parent.top; | 113 | top: parent.top; | ||
114 | right: parent.right; | 114 | right: parent.right; | ||
115 | margins: -Kirigami.Units.smallSpacing; | 115 | margins: -Kirigami.Units.smallSpacing; | ||
116 | } | 116 | } | ||
117 | height: Kirigami.Units.iconSizes.smallMedium; | 117 | height: Kirigami.Units.iconSizes.smallMedium; | ||
118 | width: height; | 118 | width: height; | ||
119 | source: "package-installed-updated"; | 119 | source: "package-installed-updated"; | ||
120 | } | 120 | } | ||
121 | Item { | 121 | FeedbackOverlay { | ||
122 | anchors.fill: parent | 122 | anchors.fill: parent | ||
123 | opacity: (model.status == NewStuff.ItemsModel.InstallingStatus || model.status == NewStuff.ItemsModel.UpdatingStatus) ? 1 : 0 | 123 | newStuffModel: component.GridView.view.model | ||
124 | Behavior on opacity { NumberAnimation { duration: Kirigami.Units.longDuration; } } | | |||
125 | Rectangle { | | |||
126 | anchors.fill: parent | | |||
127 | color: Kirigami.Theme.backgroundColor | | |||
128 | opacity: 0.5; | | |||
129 | } | | |||
130 | QtControls.BusyIndicator { | | |||
131 | anchors.centerIn: parent | | |||
132 | running: parent.opacity > 0 | | |||
133 | } | | |||
134 | } | 124 | } | ||
135 | MouseArea { | 125 | MouseArea { | ||
136 | anchors.fill: parent; | 126 | anchors.fill: parent; | ||
137 | cursorShape: Qt.PointingHandCursor; | 127 | cursorShape: Qt.PointingHandCursor; | ||
138 | onClicked: pageStack.push(detailsPage, { | 128 | onClicked: pageStack.push(detailsPage, { | ||
139 | newStuffModel: GridView.view.model, | 129 | newStuffModel: GridView.view.model, | ||
140 | index: model.index, | 130 | index: model.index, | ||
141 | name: model.name, | 131 | name: model.name, | ||
Show All 16 Lines |