fixing serviceListItem:

Need to remember that list delegates need a component not a real item,
so the wrapper is necessary
This commit is contained in:
Chris Cochrun 2024-09-14 06:31:28 -05:00
parent 146f2df0c3
commit c2a56cd24b

View file

@ -77,8 +77,9 @@ Item {
}
}
Item {
Component {
id: serviceListItem
Item {
implicitWidth: serviceItemList.width
height: Kirigami.Units.gridUnit * 2
Component.onCompleted: Utils.dbg("HELLLLLOOOOOO: " + ServiceItemModel.getItem(0).name)
@ -293,22 +294,6 @@ Item {
Controls.MenuSeparator {}
Controls.Menu {
id: rightClickMenu
Kirigami.Action {
text: "Copy"
}
Kirigami.Action {
text: "Paste"
}
Kirigami.Action {
text: "Delete"
onTriggered: removeItems()
}
Controls.MenuSeparator {}
Controls.Menu {
id: obsMenu
title: "Obs Scenes"
@ -322,7 +307,6 @@ Item {
ObsModel.setScene(modelData);
}
}
}
onObjectAdded: obsMenu.insertAction(index, object)
onObjectRemoved: obsMenu.removeAction(object)
}
@ -331,6 +315,7 @@ Item {
}
}
}
ListView {
id: serviceItemList
anchors.top: parent.top