Add context menu on breadcrumbs.
The only option is to reset the root directory.
This commit is contained in:
parent
b9eee50e52
commit
fdfc8d3fd8
@ -59,6 +59,24 @@ SplitView {
|
|||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TapHandler {
|
||||||
|
acceptedButtons: Qt.RightButton
|
||||||
|
onSingleTapped: (eventPoint, button) => {
|
||||||
|
contextMenu.popup()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Menu {
|
||||||
|
id: contextMenu
|
||||||
|
Action {
|
||||||
|
text: qsTr("Reset root index")
|
||||||
|
onTriggered: {
|
||||||
|
console.log("Resetting root directory: " + clideTreeView.originalRootDirectory)
|
||||||
|
clideTreeView.rootDirectory = clideTreeView.originalRootDirectory
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ClideTreeView {
|
ClideTreeView {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user