Use standard ItemDelegates rather than the kirigami-addons special ones
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -131,6 +131,7 @@ Kirigami.Page {
|
||||
id: treeView
|
||||
topMargin: Math.round(Kirigami.Units.smallSpacing / 2)
|
||||
|
||||
alternatingRows: false
|
||||
clip: true
|
||||
reuseItems: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user