mirror of https://github.com/KDE/kasts.git
Port to BasicListItem with subtitle
This commit is contained in:
parent
f069871eb1
commit
98ac6278da
|
@ -85,23 +85,9 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: Kirigami.SwipeListItem {
|
delegate: Kirigami.BasicListItem {
|
||||||
Controls.Label {
|
text: model.title
|
||||||
text: model.title + " - " + model.updated.toLocaleString(Qt.locale(), Locale.ShortFormat)
|
subtitle: model.updated.toLocaleString(Qt.locale(), Locale.ShortFormat)
|
||||||
textFormat: Text.RichText
|
|
||||||
color: model.read ? Kirigami.Theme.disabledTextColor : Kirigami.Theme.textColor
|
|
||||||
wrapMode: Text.Wrap
|
|
||||||
}
|
|
||||||
|
|
||||||
actions: [
|
|
||||||
Kirigami.Action {
|
|
||||||
icon.name: model.bookmark ? "bookmark-remove" : "bookmark-new"
|
|
||||||
text: i18n("Bookmark")
|
|
||||||
onTriggered: {
|
|
||||||
model.bookmark = !model.bookmark
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
model.read = true;
|
model.read = true;
|
||||||
|
|
Loading…
Reference in New Issue