mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Add accelerators
This commit is contained in:
parent
d212013bd7
commit
6d167e94f4
@ -2085,13 +2085,13 @@ void TabWorkArea::showContextMenu(const QPoint & pos)
|
||||
// show tab popup
|
||||
QMenu popup;
|
||||
popup.addAction(QIcon(getPixmap("images/", "hidetab", "svgz,png")),
|
||||
qt_("Hide Tab"), this, SLOT(hideCurrentTab()));
|
||||
qt_("&Hide Tab"), this, SLOT(hideCurrentTab()));
|
||||
|
||||
// we want to show the 'close' option only if this is not a child buffer.
|
||||
Buffer const & buf = wa->bufferView().buffer();
|
||||
if (!buf.parent())
|
||||
popup.addAction(QIcon(getPixmap("images/", "closetab", "svgz,png")),
|
||||
qt_("Close Tab"), this, SLOT(closeCurrentBuffer()));
|
||||
qt_("&Close Tab"), this, SLOT(closeCurrentBuffer()));
|
||||
popup.exec(tabBar()->mapToGlobal(pos));
|
||||
|
||||
clicked_tab_ = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user