Added hex editor window close menu option.

This commit is contained in:
Matthew Budd 2020-08-24 20:27:12 -04:00
parent 14f0da12c7
commit 1f09ecca2c
1 changed files with 11 additions and 1 deletions

View File

@ -286,7 +286,7 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
QGridLayout *grid; QGridLayout *grid;
QMenuBar *menuBar; QMenuBar *menuBar;
QMenu *fileMenu, *viewMenu, *colorMenu; QMenu *fileMenu, *viewMenu, *colorMenu;
QAction *saveROM; QAction *saveROM, *closeAct;
QAction *viewRAM, *viewPPU, *viewOAM, *viewROM; QAction *viewRAM, *viewPPU, *viewOAM, *viewROM;
QAction *actHlgt, *actHlgtRV, *actColorFG, *actColorBG; QAction *actHlgt, *actHlgtRV, *actColorFG, *actColorBG;
QActionGroup *group; QActionGroup *group;
@ -319,6 +319,16 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
fileMenu->addAction(saveROM); fileMenu->addAction(saveROM);
fileMenu->addSeparator();
// File -> Close
closeAct = new QAction(tr("Close"), this);
//closeAct->setShortcuts(QKeySequence::Open);
closeAct->setStatusTip(tr("Close Window"));
connect(closeAct, SIGNAL(triggered()), this, SLOT(closeWindow(void)) );
fileMenu->addAction(closeAct);
// View // View
viewMenu = menuBar->addMenu(tr("View")); viewMenu = menuBar->addMenu(tr("View"));