Added File/Close menu option to PPU tile editor window.
This commit is contained in:
parent
7c4e8cfeec
commit
0bff7b7608
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue