Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/UpdatesPage.qml
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 172 | model: QSortFilterProxyModel { | |||
---|---|---|---|---|---|
173 | sourceModel: updateModel | 173 | sourceModel: updateModel | ||
174 | sortRole: UpdateModel.SectionResourceProgressRole | 174 | sortRole: UpdateModel.SectionResourceProgressRole | ||
175 | } | 175 | } | ||
176 | 176 | | |||
177 | section { | 177 | section { | ||
178 | property: "section" | 178 | property: "section" | ||
179 | delegate: Kirigami.Heading { | 179 | delegate: Kirigami.Heading { | ||
180 | x: Kirigami.Units.gridUnit | 180 | x: Kirigami.Units.gridUnit | ||
181 | level: 3 | 181 | level: 2 | ||
182 | text: section | 182 | text: section | ||
183 | height: implicitHeight + Kirigami.Units.largeSpacing * 2 | 183 | height: implicitHeight + Kirigami.Units.largeSpacing * 2 | ||
184 | } | 184 | } | ||
185 | } | 185 | } | ||
186 | 186 | | |||
187 | delegate: Kirigami.AbstractListItem { | 187 | delegate: Kirigami.AbstractListItem { | ||
188 | backgroundColor: Kirigami.Theme.backgroundColor | 188 | backgroundColor: Kirigami.Theme.backgroundColor | ||
189 | highlighted: ListView.isCurrentItem | 189 | highlighted: ListView.isCurrentItem | ||
Show All 28 Lines | 206 | RowLayout { | |||
218 | 218 | | |||
219 | Kirigami.Icon { | 219 | Kirigami.Icon { | ||
220 | Layout.fillHeight: true | 220 | Layout.fillHeight: true | ||
221 | Layout.preferredWidth: height | 221 | Layout.preferredWidth: height | ||
222 | source: decoration | 222 | source: decoration | ||
223 | smooth: true | 223 | smooth: true | ||
224 | } | 224 | } | ||
225 | 225 | | |||
226 | ColumnLayout { | ||||
227 | | ||||
228 | // App name | ||||
229 | Kirigami.Heading { | ||||
230 | Layout.fillWidth: true | ||||
231 | text: i18n("%1", display) | ||||
232 | level: 3 | ||||
233 | elide: Text.ElideRight | ||||
234 | } | ||||
235 | | ||||
236 | // Old and new version numbers | ||||
226 | Label { | 237 | Label { | ||
227 | Layout.fillWidth: true | 238 | Layout.fillWidth: true | ||
228 | text: i18n("%1 (%2)", display, version) | | |||
229 | elide: Text.ElideRight | 239 | elide: Text.ElideRight | ||
240 | text: i18n("%1 ⮕ %2", installedVersion, availableVersion) | ||||
241 | } | ||||
230 | } | 242 | } | ||
231 | 243 | | |||
232 | LabelBackground { | 244 | LabelBackground { | ||
233 | Layout.minimumWidth: Kirigami.Units.gridUnit * 6 | 245 | Layout.minimumWidth: Kirigami.Units.gridUnit * 6 | ||
234 | text: size | 246 | text: size | ||
235 | 247 | | |||
236 | progress: resourceProgress/100 | 248 | progress: resourceProgress/100 | ||
237 | } | 249 | } | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |