Merge pull request #12 from ChungZH/menu

feat: more actions in menu
This commit is contained in:
Reion Wong 2021-08-03 16:26:45 +08:00 committed by GitHub
commit 74b1a2efb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,23 @@ Item {
text: qsTr("Select All")
onTriggered: dirModel.selectAll()
}
MenuSeparator {}
MenuItem {
text: qsTr("Cut")
onTriggered: dirModel.cut()
}
MenuItem {
text: qsTr("Copy")
onTriggered: dirModel.copy()
}
MenuItem {
text: qsTr("Paste")
onTriggered: dirModel.paste()
}
}
Menu {