fixing minor bug in mouseHandler and delete popup
This commit is contained in:
parent
28dadb880d
commit
8e57630973
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue