Added File/Close menu option to PPU tile editor window.

This commit is contained in:
mjbudd77 2021-02-21 18:24:30 -05:00
parent 7c4e8cfeec
commit 0bff7b7608
1 changed files with 13 additions and 2 deletions

View File

@ -1524,7 +1524,7 @@ ppuTileEditor_t::ppuTileEditor_t(int patternIndex, QWidget *parent)
QVBoxLayout *mainLayout; QVBoxLayout *mainLayout;
QHBoxLayout *hbox; QHBoxLayout *hbox;
QMenuBar *menuBar; QMenuBar *menuBar;
QMenu *helpMenu; QMenu *fileMenu, *helpMenu;
QAction *act; QAction *act;
int useNativeMenuBar; int useNativeMenuBar;
@ -1540,8 +1540,19 @@ ppuTileEditor_t::ppuTileEditor_t(int patternIndex, QWidget *parent)
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Menu // Menu
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// File
fileMenu = menuBar->addMenu(tr("&File"));
// File -> Close
act = new QAction(tr("&Close"), this);
act->setShortcut(QKeySequence::Close);
act->setStatusTip(tr("Close Window"));
connect(act, SIGNAL(triggered()), this, SLOT(closeWindow(void)) );
fileMenu->addAction(act);
// Help // Help
helpMenu = menuBar->addMenu(tr("Help")); helpMenu = menuBar->addMenu(tr("&Help"));
// Help -> Key Assignments // Help -> Key Assignments
act = new QAction(tr("Keys"), this); act = new QAction(tr("Keys"), this);