Added native menu option to hex editor.
This commit is contained in:
parent
67f6be539a
commit
a624278fca
|
@ -1036,7 +1036,7 @@ void consoleWin_t::openHexEditor(void)
|
|||
|
||||
delete hexEditWin;
|
||||
|
||||
//printf("GUI Cheat Window Destroyed\n");
|
||||
//printf("GUI Hex Editor Window Destroyed\n");
|
||||
}
|
||||
|
||||
void consoleWin_t::toggleAutoResume(void)
|
||||
|
|
|
@ -290,6 +290,7 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
|
|||
QAction *viewRAM, *viewPPU, *viewOAM, *viewROM;
|
||||
QAction *actHlgt, *actHlgtRV, *actColorFG, *actColorBG;
|
||||
QActionGroup *group;
|
||||
int useNativeMenuBar;
|
||||
|
||||
setWindowTitle("Hex Editor");
|
||||
|
||||
|
@ -297,6 +298,10 @@ HexEditorDialog_t::HexEditorDialog_t(QWidget *parent)
|
|||
|
||||
menuBar = new QMenuBar(this);
|
||||
|
||||
// This is needed for menu bar to show up on MacOS
|
||||
g_config->getOption( "SDL.UseNativeMenuBar", &useNativeMenuBar );
|
||||
|
||||
menuBar->setNativeMenuBar( useNativeMenuBar ? true : false );
|
||||
//-----------------------------------------------------------------------
|
||||
// Menu
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue