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

@ -210,11 +210,18 @@ ColumnLayout {
rightClickMenu.popup(); rightClickMenu.popup();
else { else {
serviceItemList.currentIndex = index; serviceItemList.currentIndex = index;
currentServiceItem = index; /* currentServiceItem = index; */
changeServiceItem(index); /* changeItem(index); */
} }
} }
onDoubleClicked: {
showPassiveNotification("Double Clicked")
serviceItemList.currentIndex = index;
currentServiceItem = index;
changeServiceItem(index);
}
onReleased: { onReleased: {
print("should drop"); print("should drop");
visServiceItem.Drag.drop(); visServiceItem.Drag.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);