mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
a more comfortable context menu in VFileList
Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
parent
85d9456f02
commit
ed785e12d3
@ -271,14 +271,22 @@ void VFileList::contextMenuRequested(QPoint pos)
|
||||
menu.addAction(newFileAct);
|
||||
if (item) {
|
||||
menu.addAction(deleteFileAct);
|
||||
menu.addAction(fileInfoAct);
|
||||
menu.addSeparator();
|
||||
menu.addAction(copyAct);
|
||||
menu.addAction(cutAct);
|
||||
}
|
||||
|
||||
if (VUtils::opTypeInClipboard() == ClipboardOpType::CopyFile) {
|
||||
if (!item) {
|
||||
menu.addSeparator();
|
||||
}
|
||||
menu.addAction(pasteAct);
|
||||
}
|
||||
|
||||
if (item) {
|
||||
menu.addSeparator();
|
||||
menu.addAction(fileInfoAct);
|
||||
}
|
||||
menu.exec(fileList->mapToGlobal(pos));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user