mirror of
https://github.com/KDE/kasts.git
synced 2025-01-26 15:14:55 +01:00
Port EntryList to user SwipeListItems
This commit is contained in:
parent
649c6a1e10
commit
b2d10e578a
@ -87,9 +87,27 @@ Kirigami.ScrollablePage {
|
||||
}
|
||||
}
|
||||
|
||||
delegate: Kirigami.BasicListItem {
|
||||
text: model.title
|
||||
subtitle: model.updated.toLocaleString(Qt.locale(), Locale.ShortFormat) + (model.authors.length === 0 ? "" : " " + i18nc("by <author(s)>", "by") + " " + model.authors.join(", "))
|
||||
delegate: Kirigami.SwipeListItem {
|
||||
ColumnLayout {
|
||||
spacing: 0
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
Controls.Label {
|
||||
text: model.title
|
||||
Layout.fillWidth: true
|
||||
elide: Text.ElideRight
|
||||
opacity: 1
|
||||
}
|
||||
Controls.Label {
|
||||
id: subtitleItem
|
||||
text: model.updated.toLocaleString(Qt.locale(), Locale.ShortFormat) + (model.authors.length === 0 ? "" : " " + i18nc("by <author(s)>", "by") + " " + model.authors.join(", "))
|
||||
Layout.fillWidth: true
|
||||
elide: Text.ElideRight
|
||||
font: Kirigami.Theme.smallFont
|
||||
opacity: 0.6
|
||||
visible: text.length > 0
|
||||
}
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
model.read = true;
|
||||
|
Loading…
Reference in New Issue
Block a user