adding preliminary changes to UX of leftdock

This commit is contained in:
Chris Cochrun 2022-09-16 06:56:09 -05:00
parent 9f9026105f
commit 0edda92f21

View file

@ -209,11 +209,18 @@ ColumnLayout {
if (mouse.button === Qt.RightButton) if (mouse.button === Qt.RightButton)
rightClickMenu.popup(); rightClickMenu.popup();
else { else {
serviceItemList.currentIndex = index;
/* currentServiceItem = index; */
/* changeItem(index); */
}
}
onDoubleClicked: {
showPassiveNotification("Double Clicked")
serviceItemList.currentIndex = index; serviceItemList.currentIndex = index;
currentServiceItem = index; currentServiceItem = index;
changeServiceItem(index); changeServiceItem(index);
} }
}
onReleased: { onReleased: {
print("should drop"); print("should drop");
@ -307,6 +314,29 @@ ColumnLayout {
} }
} }
Kirigami.ActionToolBar {
id: serviceToolBar
Layout.fillWidth: true
opacity: 1.0
actions: [
Kirigami.Action {
/* text: "Up" */
icon.name: "arrow-up"
onTriggered: showPassiveNotification("Up")
},
Kirigami.Action {
/* text: "Down" */
icon.name: "arrow-down"
onTriggered: showPassiveNotification("down")
},
Kirigami.Action {
/* text: "Remove" */
icon.name: "delete"
onTriggered: showPassiveNotification("remove")
}
]
}
Component.onCompleted: { Component.onCompleted: {
totalServiceItems = serviceItemList.count; totalServiceItems = serviceItemList.count;
print("THE TOTAL SERVICE ITEMS: " + totalServiceItems); print("THE TOTAL SERVICE ITEMS: " + totalServiceItems);