Port away from BasicListItem

For GlobalSearchField
This commit is contained in:
Alexey Andreyev 2023-09-27 01:07:58 +03:00
parent 4f179341e6
commit 51fdaeaddd
1 changed files with 11 additions and 9 deletions

View File

@ -10,6 +10,7 @@ import QtQuick.Layouts
import QtQml.Models
import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.delegates as Delegates
import org.kde.kirigamiaddons.labs.components as Addons
import org.kde.kasts
@ -76,16 +77,17 @@ Addons.SearchPopupField {
model: globalSearchField.searchFilter === "" ? null : proxyModel
delegate: Component {
Kirigami.BasicListItem {
separatorVisible: true
icon.source: model.entry.cachedImage
label: model.entry.title
delegate: Delegates.RoundedItemDelegate {
id: searchListDelegate
text: model.entry.title
icon.source: model.entry.cachedImage
contentItem: Delegates.SubtitleContentItem {
itemDelegate: searchListDelegate
subtitle: model.entry.feed.name
onClicked: {
globalSearchField.openEntry(model.entry);
globalSearchField.popup.close();
}
}
onClicked: {
globalSearchField.openEntry(model.entry);
globalSearchField.popup.close();
}
}
Kirigami.PlaceholderMessage {