fixing minor bug in mouseHandler and delete popup

This commit is contained in:
Chris Cochrun 2023-01-11 14:11:21 -06:00
parent 28dadb880d
commit 8e57630973

View file

@ -239,7 +239,7 @@ Item {
onClicked: { onClicked: {
if (mouse.button === Qt.RightButton) if (mouse.button === Qt.RightButton)
rightClickMenu.popup(); rightClickMenu.popup(mouse);
else { else {
serviceItemList.currentIndex = index; serviceItemList.currentIndex = index;
serviceItemModel.select(index); serviceItemModel.select(index);
@ -272,8 +272,8 @@ Item {
} }
Controls.Menu { Controls.Menu {
id: rightClickMenu id: rightClickMenu
x: mouseHandler.mouseX x: mouse.mouseX
y: mouseHandler.mouseY + 10 y: mouse.mouseY + 10
Kirigami.Action { Kirigami.Action {
text: "delete" text: "delete"
onTriggered: removeItem(index); onTriggered: removeItem(index);