Qt: Convert several dialogs into QDialogs

This commit is contained in:
Jeffrey Pfau 2015-08-08 21:39:33 -07:00
parent 12ef93d784
commit e422c64a25
8 changed files with 13 additions and 13 deletions

View File

@ -18,7 +18,7 @@
using namespace QGBA;
GDBWindow::GDBWindow(GDBController* controller, QWidget* parent)
: QWidget(parent)
: QDialog(parent)
, m_gdbController(controller)
{
setWindowFlags(windowFlags() & ~Qt::WindowFullscreenButtonHint);

View File

@ -6,7 +6,7 @@
#ifndef QGBA_GDB_WINDOW
#define QGBA_GDB_WINDOW
#include <QWidget>
#include <QDialog>
class QLineEdit;
class QPushButton;
@ -15,7 +15,7 @@ namespace QGBA {
class GDBController;
class GDBWindow : public QWidget {
class GDBWindow : public QDialog {
Q_OBJECT
public:

View File

@ -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)
{

View File

@ -6,7 +6,7 @@
#ifndef QGBA_OVERRIDE_VIEW
#define QGBA_OVERRIDE_VIEW
#include <QWidget>
#include <QDialog>
#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:

View File

@ -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())

View File

@ -7,7 +7,7 @@
#define QGBA_SENSOR_VIEW
#include <QTimer>
#include <QWidget>
#include <QDialog>
#include <functional>
@ -22,7 +22,7 @@ class GameController;
class GamepadAxisEvent;
class InputController;
class SensorView : public QWidget {
class SensorView : public QDialog {
Q_OBJECT
public:

View File

@ -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);

View File

@ -6,7 +6,7 @@
#ifndef QGBA_SETTINGS_VIEW
#define QGBA_SETTINGS_VIEW
#include <QWidget>
#include <QDialog>
#include "ui_SettingsView.h"
@ -14,7 +14,7 @@ namespace QGBA {
class ConfigController;
class SettingsView : public QWidget {
class SettingsView : public QDialog {
Q_OBJECT
public: