mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
refine Info act
This commit is contained in:
parent
6212bb48bc
commit
af8cd0d73b
@ -288,7 +288,7 @@ void VAttachmentList::handleContextMenuRequested(QPoint p_pos)
|
|||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
|
||||||
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
||||||
tr("&Info\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
tr("&Info (Rename)\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
||||||
&menu);
|
&menu);
|
||||||
fileInfoAct->setToolTip(tr("View and edit current folder's information"));
|
fileInfoAct->setToolTip(tr("View and edit current folder's information"));
|
||||||
connect(fileInfoAct, &QAction::triggered,
|
connect(fileInfoAct, &QAction::triggered,
|
||||||
|
@ -445,7 +445,7 @@ void VDirectoryTree::contextMenuRequested(QPoint pos)
|
|||||||
menu.addAction(pinToHistoryAct);
|
menu.addAction(pinToHistoryAct);
|
||||||
|
|
||||||
QAction *dirInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/dir_info.svg"),
|
QAction *dirInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/dir_info.svg"),
|
||||||
tr("&Info\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
tr("&Info (Rename)\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
||||||
&menu);
|
&menu);
|
||||||
dirInfoAct->setToolTip(tr("View and edit current folder's information"));
|
dirInfoAct->setToolTip(tr("View and edit current folder's information"));
|
||||||
connect(dirInfoAct, &QAction::triggered,
|
connect(dirInfoAct, &QAction::triggered,
|
||||||
|
@ -475,7 +475,7 @@ void VExplorer::handleContextMenuRequested(QPoint p_pos)
|
|||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
|
||||||
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
||||||
tr("&Info\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
tr("&Info (Rename)\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
||||||
&menu);
|
&menu);
|
||||||
fileInfoAct->setToolTip(tr("View and edit current folder's information"));
|
fileInfoAct->setToolTip(tr("View and edit current folder's information"));
|
||||||
connect(fileInfoAct, &QAction::triggered,
|
connect(fileInfoAct, &QAction::triggered,
|
||||||
@ -573,7 +573,7 @@ void VExplorer::handleContextMenuRequested(QPoint p_pos)
|
|||||||
|
|
||||||
if (selectedFiles.size() == 1) {
|
if (selectedFiles.size() == 1) {
|
||||||
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
||||||
tr("&Info\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
tr("&Info (Rename)\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
||||||
&menu);
|
&menu);
|
||||||
fileInfoAct->setToolTip(tr("View and edit current file's information"));
|
fileInfoAct->setToolTip(tr("View and edit current file's information"));
|
||||||
connect(fileInfoAct, &QAction::triggered,
|
connect(fileInfoAct, &QAction::triggered,
|
||||||
|
@ -636,7 +636,7 @@ void VFileList::contextMenuRequested(QPoint pos)
|
|||||||
|
|
||||||
if (selectedSize == 1) {
|
if (selectedSize == 1) {
|
||||||
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
QAction *fileInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/note_info.svg"),
|
||||||
tr("&Info\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
tr("&Info (Rename)\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
||||||
&menu);
|
&menu);
|
||||||
fileInfoAct->setToolTip(tr("View and edit current note's information"));
|
fileInfoAct->setToolTip(tr("View and edit current note's information"));
|
||||||
connect(fileInfoAct, SIGNAL(triggered(bool)),
|
connect(fileInfoAct, SIGNAL(triggered(bool)),
|
||||||
|
@ -487,7 +487,7 @@ void VNotebookSelector::popupListContextMenuRequested(QPoint p_pos)
|
|||||||
|
|
||||||
if (nb->isValid()) {
|
if (nb->isValid()) {
|
||||||
QAction *notebookInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/notebook_info.svg"),
|
QAction *notebookInfoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/notebook_info.svg"),
|
||||||
tr("&Info"),
|
tr("&Info (Rename)"),
|
||||||
&menu);
|
&menu);
|
||||||
notebookInfoAct->setToolTip(tr("View and edit current notebook's information"));
|
notebookInfoAct->setToolTip(tr("View and edit current notebook's information"));
|
||||||
connect(notebookInfoAct, SIGNAL(triggered(bool)),
|
connect(notebookInfoAct, SIGNAL(triggered(bool)),
|
||||||
|
@ -144,7 +144,7 @@ void VSnippetList::handleContextMenuRequested(QPoint p_pos)
|
|||||||
menu.addAction(applyAct);
|
menu.addAction(applyAct);
|
||||||
|
|
||||||
QAction *infoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/snippet_info.svg"),
|
QAction *infoAct = new QAction(VIconUtils::menuIcon(":/resources/icons/snippet_info.svg"),
|
||||||
tr("&Info\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
tr("&Info (Rename)\t%1").arg(VUtils::getShortcutText(c_infoShortcutSequence)),
|
||||||
&menu);
|
&menu);
|
||||||
infoAct->setToolTip(tr("View and edit snippet's information"));
|
infoAct->setToolTip(tr("View and edit snippet's information"));
|
||||||
connect(infoAct, &QAction::triggered,
|
connect(infoAct, &QAction::triggered,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user