adding preliminary changes to UX of leftdock
This commit is contained in:
parent
9f9026105f
commit
0edda92f21
1 changed files with 32 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue