Use standard ItemDelegates rather than the kirigami-addons special ones

This commit is contained in:
James Graham
2024-05-27 18:41:53 +01:00
parent aa68369f95
commit 6a1ff37011
2 changed files with 8 additions and 1 deletions

View File

@@ -10,10 +10,11 @@ import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.delegates as Delegates
import org.kde.kirigamiaddons.labs.components as Components
import org.kde.kitemmodels
import org.kde.desktop.private as Private
import org.kde.neochat
Delegates.RoundedItemDelegate {
QQC2.ItemDelegate {
id: root
required property int index
@@ -145,6 +146,11 @@ Delegates.RoundedItemDelegate {
}
}
background: Private.DefaultListItemBackground {
control: root
styling: Private.DefaultListItemBackground.Styling.List
}
function createRoomListContextMenu() {
const component = Qt.createComponent('org.kde.neochat', 'ContextMenu');
if (component.status === Component.Error) {

View File

@@ -131,6 +131,7 @@ Kirigami.Page {
id: treeView
topMargin: Math.round(Kirigami.Units.smallSpacing / 2)
alternatingRows: false
clip: true
reuseItems: false