diff --git a/src/platform/qt/GDBWindow.cpp b/src/platform/qt/GDBWindow.cpp index 26191b6e0..10e4b55d8 100644 --- a/src/platform/qt/GDBWindow.cpp +++ b/src/platform/qt/GDBWindow.cpp @@ -18,7 +18,7 @@ using namespace QGBA; GDBWindow::GDBWindow(GDBController* controller, QWidget* parent) - : QWidget(parent) + : QDialog(parent) , m_gdbController(controller) { setWindowFlags(windowFlags() & ~Qt::WindowFullscreenButtonHint); diff --git a/src/platform/qt/GDBWindow.h b/src/platform/qt/GDBWindow.h index 683e7c632..9759df05b 100644 --- a/src/platform/qt/GDBWindow.h +++ b/src/platform/qt/GDBWindow.h @@ -6,7 +6,7 @@ #ifndef QGBA_GDB_WINDOW #define QGBA_GDB_WINDOW -#include +#include class QLineEdit; class QPushButton; @@ -15,7 +15,7 @@ namespace QGBA { class GDBController; -class GDBWindow : public QWidget { +class GDBWindow : public QDialog { Q_OBJECT public: diff --git a/src/platform/qt/OverrideView.cpp b/src/platform/qt/OverrideView.cpp index 738760684..b836f7ce0 100644 --- a/src/platform/qt/OverrideView.cpp +++ b/src/platform/qt/OverrideView.cpp @@ -15,7 +15,7 @@ extern "C" { using namespace QGBA; OverrideView::OverrideView(GameController* controller, ConfigController* config, QWidget* parent) - : QWidget(parent) + : QDialog(parent) , m_controller(controller) , m_config(config) { diff --git a/src/platform/qt/OverrideView.h b/src/platform/qt/OverrideView.h index 6a217edd5..3ed5d3e20 100644 --- a/src/platform/qt/OverrideView.h +++ b/src/platform/qt/OverrideView.h @@ -6,7 +6,7 @@ #ifndef QGBA_OVERRIDE_VIEW #define QGBA_OVERRIDE_VIEW -#include +#include #include "ui_OverrideView.h" @@ -21,7 +21,7 @@ namespace QGBA { class ConfigController; class GameController; -class OverrideView : public QWidget { +class OverrideView : public QDialog { Q_OBJECT public: diff --git a/src/platform/qt/SensorView.cpp b/src/platform/qt/SensorView.cpp index 501b05fd9..9a2edd6e4 100644 --- a/src/platform/qt/SensorView.cpp +++ b/src/platform/qt/SensorView.cpp @@ -12,7 +12,7 @@ using namespace QGBA; SensorView::SensorView(GameController* controller, InputController* input, QWidget* parent) - : QWidget(parent) + : QDialog(parent) , m_controller(controller) , m_input(input) , m_rotation(input->rotationSource()) diff --git a/src/platform/qt/SensorView.h b/src/platform/qt/SensorView.h index a37fb6e65..50c96ecf1 100644 --- a/src/platform/qt/SensorView.h +++ b/src/platform/qt/SensorView.h @@ -7,7 +7,7 @@ #define QGBA_SENSOR_VIEW #include -#include +#include #include @@ -22,7 +22,7 @@ class GameController; class GamepadAxisEvent; class InputController; -class SensorView : public QWidget { +class SensorView : public QDialog { Q_OBJECT public: diff --git a/src/platform/qt/SettingsView.cpp b/src/platform/qt/SettingsView.cpp index cc343cd29..53ed8fac2 100644 --- a/src/platform/qt/SettingsView.cpp +++ b/src/platform/qt/SettingsView.cpp @@ -13,8 +13,8 @@ using namespace QGBA; SettingsView::SettingsView(ConfigController* controller, QWidget* parent) - : QWidget(parent) - , m_controller(controller) + : QDialog(parent) + , m_controller(controller) { m_ui.setupUi(this); diff --git a/src/platform/qt/SettingsView.h b/src/platform/qt/SettingsView.h index 782e20e63..e47cda889 100644 --- a/src/platform/qt/SettingsView.h +++ b/src/platform/qt/SettingsView.h @@ -6,7 +6,7 @@ #ifndef QGBA_SETTINGS_VIEW #define QGBA_SETTINGS_VIEW -#include +#include #include "ui_SettingsView.h" @@ -14,7 +14,7 @@ namespace QGBA { class ConfigController; -class SettingsView : public QWidget { +class SettingsView : public QDialog { Q_OBJECT public: