Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/private/entrygriddelegates/TileDelegate.qml
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Line(s) | 169 | Kirigami.Heading { | |||
---|---|---|---|---|---|
172 | level: 3 | 172 | level: 3 | ||
173 | text: model.name | 173 | text: model.name | ||
174 | } | 174 | } | ||
175 | Kirigami.Heading { | 175 | Kirigami.Heading { | ||
176 | QtLayouts.Layout.fillWidth: true | 176 | QtLayouts.Layout.fillWidth: true | ||
177 | elide: Text.ElideRight | 177 | elide: Text.ElideRight | ||
178 | level: 4 | 178 | level: 4 | ||
179 | textFormat: Text.StyledText | 179 | textFormat: Text.StyledText | ||
180 | text: i18nc("Subheading for the tile view, located immediately underneath the name of the item", "By <i>%1</i>").arg(model.author.name) | 180 | text: i18nc("Subheading for the tile view, located immediately underneath the name of the item", "By <i>%1</i>", model.author.name) | ||
181 | } | 181 | } | ||
182 | QtControls.Label { | 182 | QtControls.Label { | ||
183 | QtLayouts.Layout.fillWidth: true | 183 | QtLayouts.Layout.fillWidth: true | ||
184 | QtLayouts.Layout.fillHeight: true | 184 | QtLayouts.Layout.fillHeight: true | ||
185 | wrapMode: Text.Wrap | 185 | wrapMode: Text.Wrap | ||
186 | text: model.shortSummary.length > 0 ? model.shortSummary : model.summary | 186 | text: model.shortSummary.length > 0 ? model.shortSummary : model.summary | ||
187 | elide: Text.ElideRight | 187 | elide: Text.ElideRight | ||
188 | } | 188 | } | ||
189 | } | 189 | } | ||
190 | Private.Rating { | 190 | Private.Rating { | ||
191 | QtLayouts.Layout.fillWidth: true | 191 | QtLayouts.Layout.fillWidth: true | ||
192 | rating: model.rating / 10 | 192 | rating: model.rating / 10 | ||
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", model.downloadCount) | ||
199 | } | 199 | } | ||
200 | } | 200 | } | ||
201 | FeedbackOverlay { | 201 | FeedbackOverlay { | ||
202 | anchors.fill: parent | 202 | anchors.fill: parent | ||
203 | newStuffModel: component.GridView.view.model | 203 | newStuffModel: component.GridView.view.model | ||
204 | } | 204 | } | ||
205 | MouseArea { | 205 | MouseArea { | ||
206 | anchors.fill: parent; | 206 | anchors.fill: parent; | ||
207 | cursorShape: Qt.PointingHandCursor; | 207 | cursorShape: Qt.PointingHandCursor; | ||
208 | onClicked: component.showDetails(); | 208 | onClicked: component.showDetails(); | ||
209 | } | 209 | } | ||
210 | } | 210 | } | ||
211 | } | 211 | } |