From 86a12c96f97aa62878de69047c96ae533f540338 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Tue, 27 Oct 2020 22:26:58 -0400 Subject: [PATCH] Changed all debug and tools windows to be non-modal top level windows. This allows then to be minimized and maximized via the title bar buttons and will also show in the task bar of the window environment as separate windows. --- src/drivers/Qt/CheatsConf.cpp | 2 +- src/drivers/Qt/CodeDataLogger.cpp | 2 +- src/drivers/Qt/ConsoleDebugger.cpp | 2 +- src/drivers/Qt/GamePadConf.cpp | 2 +- src/drivers/Qt/HexEditor.cpp | 2 +- src/drivers/Qt/LuaControl.cpp | 2 +- src/drivers/Qt/NameTableViewer.cpp | 2 +- src/drivers/Qt/RamSearch.cpp | 2 +- src/drivers/Qt/RamWatch.cpp | 2 +- src/drivers/Qt/TraceLogger.cpp | 2 +- src/drivers/Qt/ppuViewer.cpp | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/drivers/Qt/CheatsConf.cpp b/src/drivers/Qt/CheatsConf.cpp index 4857fb1a..015cadbb 100644 --- a/src/drivers/Qt/CheatsConf.cpp +++ b/src/drivers/Qt/CheatsConf.cpp @@ -48,7 +48,7 @@ void updateCheatDialog(void) } //---------------------------------------------------------------------------- GuiCheatsDialog_t::GuiCheatsDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QHBoxLayout *mainLayout, *hbox, *hbox1; QVBoxLayout *vbox, *vbox1, *vbox2, *vbox3; diff --git a/src/drivers/Qt/CodeDataLogger.cpp b/src/drivers/Qt/CodeDataLogger.cpp index 0868ec43..eb3ff82b 100644 --- a/src/drivers/Qt/CodeDataLogger.cpp +++ b/src/drivers/Qt/CodeDataLogger.cpp @@ -30,7 +30,7 @@ static char loadedcdfile[512] = {0}; static int getDefaultCDLFile( char *filepath ); //---------------------------------------------------- CodeDataLoggerDialog_t::CodeDataLoggerDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QVBoxLayout *mainLayout, *vbox1, *vbox; QHBoxLayout *hbox; diff --git a/src/drivers/Qt/ConsoleDebugger.cpp b/src/drivers/Qt/ConsoleDebugger.cpp index 375701dc..e62f9d4c 100644 --- a/src/drivers/Qt/ConsoleDebugger.cpp +++ b/src/drivers/Qt/ConsoleDebugger.cpp @@ -52,7 +52,7 @@ static std::list dbgWinList; static void DeleteBreak(int sel); //---------------------------------------------------------------------------- ConsoleDebugger::ConsoleDebugger(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QHBoxLayout *mainLayout; QVBoxLayout *vbox, *vbox1, *vbox2, *vbox3, *vbox4; diff --git a/src/drivers/Qt/GamePadConf.cpp b/src/drivers/Qt/GamePadConf.cpp index 42d3a888..ea6cb063 100644 --- a/src/drivers/Qt/GamePadConf.cpp +++ b/src/drivers/Qt/GamePadConf.cpp @@ -63,7 +63,7 @@ int closeGamePadConfWindow(void) } //---------------------------------------------------- GamePadConfDialog_t::GamePadConfDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QWidget *mainWidget; QVBoxLayout *mainLayout; diff --git a/src/drivers/Qt/HexEditor.cpp b/src/drivers/Qt/HexEditor.cpp index 8f4163b6..11a58326 100644 --- a/src/drivers/Qt/HexEditor.cpp +++ b/src/drivers/Qt/HexEditor.cpp @@ -534,7 +534,7 @@ void HexBookMarkMenuAction::activateCB(void) } //---------------------------------------------------------------------------- HexEditorDialog_t::HexEditorDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { //QVBoxLayout *mainLayout; QGridLayout *grid; diff --git a/src/drivers/Qt/LuaControl.cpp b/src/drivers/Qt/LuaControl.cpp index 0ece4e19..87bddb56 100644 --- a/src/drivers/Qt/LuaControl.cpp +++ b/src/drivers/Qt/LuaControl.cpp @@ -94,7 +94,7 @@ static std::list winList; static void updateLuaWindows( void ); //---------------------------------------------------- LuaControlDialog_t::LuaControlDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QVBoxLayout *mainLayout; QHBoxLayout *hbox; diff --git a/src/drivers/Qt/NameTableViewer.cpp b/src/drivers/Qt/NameTableViewer.cpp index a2ed46f3..6936d4dd 100644 --- a/src/drivers/Qt/NameTableViewer.cpp +++ b/src/drivers/Qt/NameTableViewer.cpp @@ -83,7 +83,7 @@ int openNameTableViewWindow( QWidget *parent ) } //---------------------------------------------------- ppuNameTableViewerDialog_t::ppuNameTableViewerDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QVBoxLayout *mainLayout, *vbox; QHBoxLayout *hbox; diff --git a/src/drivers/Qt/RamSearch.cpp b/src/drivers/Qt/RamSearch.cpp index f0858020..a0263a1d 100644 --- a/src/drivers/Qt/RamSearch.cpp +++ b/src/drivers/Qt/RamSearch.cpp @@ -169,7 +169,7 @@ void openRamSearchWindow( QWidget *parent ) //---------------------------------------------------------------------------- RamSearchDialog_t::RamSearchDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QVBoxLayout *mainLayout; QHBoxLayout *hbox, *hbox1, *hbox2, *hbox3; diff --git a/src/drivers/Qt/RamWatch.cpp b/src/drivers/Qt/RamWatch.cpp index a1d57c05..c0ad80f8 100644 --- a/src/drivers/Qt/RamWatch.cpp +++ b/src/drivers/Qt/RamWatch.cpp @@ -46,7 +46,7 @@ void openRamWatchWindow( QWidget *parent, int force ) } //---------------------------------------------------------------------------- RamWatchDialog_t::RamWatchDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QMenuBar *menuBar; QHBoxLayout *mainLayout; diff --git a/src/drivers/Qt/TraceLogger.cpp b/src/drivers/Qt/TraceLogger.cpp index a87d9ae9..54291f8b 100644 --- a/src/drivers/Qt/TraceLogger.cpp +++ b/src/drivers/Qt/TraceLogger.cpp @@ -75,7 +75,7 @@ static TraceLoggerDialog_t *traceLogWindow = NULL; static void pushMsgToLogBuffer( const char *msg ); //---------------------------------------------------- TraceLoggerDialog_t::TraceLoggerDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QVBoxLayout *mainLayout; QHBoxLayout *hbox; diff --git a/src/drivers/Qt/ppuViewer.cpp b/src/drivers/Qt/ppuViewer.cpp index d0b6b352..c68eab08 100644 --- a/src/drivers/Qt/ppuViewer.cpp +++ b/src/drivers/Qt/ppuViewer.cpp @@ -66,7 +66,7 @@ int openPPUViewWindow( QWidget *parent ) } //---------------------------------------------------- ppuViewerDialog_t::ppuViewerDialog_t(QWidget *parent) - : QDialog( parent ) + : QDialog( parent, Qt::Window ) { QVBoxLayout *mainLayout, *vbox; QVBoxLayout *patternVbox[2];