Add context menu on breadcrumbs.
The only option is to reset the root directory.
This commit is contained in:
parent
b9eee50e52
commit
be383869b2
@ -59,6 +59,24 @@ SplitView {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
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 {
|
||||
|
||||
@ -28,7 +28,7 @@ TreeView {
|
||||
// The delegate represents a single entry in the filesystem.
|
||||
delegate: TreeViewDelegate {
|
||||
id: treeDelegate
|
||||
indentation: 8
|
||||
indentation: 12
|
||||
implicitWidth: fileSystemTreeView.width > 0 ? fileSystemTreeView.width : 250
|
||||
implicitHeight: 25
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user