Commit 838331d1 authored by Calvin Buckley's avatar Calvin Buckley 🤔
Browse files

Close in menu so ^W works as expected

parent 9135ad7b
......@@ -353,6 +353,11 @@ void QCGTopLevel::createActions()
_openAction->setStatusTip(tr("Open profile data file"));
connect(_openAction, SIGNAL(triggered()), this, SLOT(load()));
_closeAction = new QAction(tr("&Close"), this);
_closeAction->setShortcuts(QKeySequence::Close);
_closeAction->setStatusTip(tr("Close the current window"));
connect(_closeAction, SIGNAL(triggered()), this, SLOT(close()));
_addAction = new QAction(tr( "&Add..." ), this);
_addAction->setStatusTip(tr("Add profile data to current window"));
connect(_addAction, SIGNAL(triggered(bool)), SLOT(add()));
......@@ -582,6 +587,8 @@ void QCGTopLevel::createMenu()
fileMenu->addSeparator();
fileMenu->addAction(_exportAction);
fileMenu->addSeparator();
fileMenu->addAction(_closeAction);
fileMenu->addSeparator();
fileMenu->addAction(_exitAction);
QMenu* layoutMenu = new QMenu(tr("&Layout"), this);
......
......@@ -224,7 +224,7 @@ private:
QAction *_cyclesToggleAction, *_percentageToggleAction;
QAction *_expandedToggleAction, *_hideTemplatesToggleAction;
QAction *_primaryMenuAction, *_secondaryMenuAction;
QAction *_groupingMenuAction;
QAction *_groupingMenuAction, *_closeAction;
QAction *_splittedToggleAction, *_splitDirectionToggleAction;
QAction *_layoutNext, *_layoutPrev, *_layoutRemove, *_layoutDup;
QAction *_layoutRestore, *_layoutSave;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment