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:
parent
146f2df0c3
commit
c2a56cd24b
1 changed files with 172 additions and 187 deletions
|
@ -77,8 +77,9 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Component {
|
||||||
id: serviceListItem
|
id: serviceListItem
|
||||||
|
Item {
|
||||||
implicitWidth: serviceItemList.width
|
implicitWidth: serviceItemList.width
|
||||||
height: Kirigami.Units.gridUnit * 2
|
height: Kirigami.Units.gridUnit * 2
|
||||||
Component.onCompleted: Utils.dbg("HELLLLLOOOOOO: " + ServiceItemModel.getItem(0).name)
|
Component.onCompleted: Utils.dbg("HELLLLLOOOOOO: " + ServiceItemModel.getItem(0).name)
|
||||||
|
@ -293,22 +294,6 @@ Item {
|
||||||
Controls.MenuSeparator {}
|
Controls.MenuSeparator {}
|
||||||
|
|
||||||
|
|
||||||
Controls.Menu {
|
|
||||||
id: rightClickMenu
|
|
||||||
Kirigami.Action {
|
|
||||||
text: "Copy"
|
|
||||||
}
|
|
||||||
Kirigami.Action {
|
|
||||||
text: "Paste"
|
|
||||||
}
|
|
||||||
Kirigami.Action {
|
|
||||||
text: "Delete"
|
|
||||||
onTriggered: removeItems()
|
|
||||||
}
|
|
||||||
|
|
||||||
Controls.MenuSeparator {}
|
|
||||||
|
|
||||||
|
|
||||||
Controls.Menu {
|
Controls.Menu {
|
||||||
id: obsMenu
|
id: obsMenu
|
||||||
title: "Obs Scenes"
|
title: "Obs Scenes"
|
||||||
|
@ -322,7 +307,6 @@ Item {
|
||||||
ObsModel.setScene(modelData);
|
ObsModel.setScene(modelData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
onObjectAdded: obsMenu.insertAction(index, object)
|
onObjectAdded: obsMenu.insertAction(index, object)
|
||||||
onObjectRemoved: obsMenu.removeAction(object)
|
onObjectRemoved: obsMenu.removeAction(object)
|
||||||
}
|
}
|
||||||
|
@ -331,6 +315,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
ListView {
|
ListView {
|
||||||
id: serviceItemList
|
id: serviceItemList
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue