Qt: Set window flags on dialogs

This commit is contained in:
Jeffrey Pfau 2016-02-01 00:01:29 -08:00
parent c69c34ab2d
commit d53004650d
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,9 @@ extern "C" {
using namespace QGBA;
ROMInfo::ROMInfo(GameController* controller, QWidget* parent) {
ROMInfo::ROMInfo(GameController* controller, QWidget* parent)
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint)
{
m_ui.setupUi(this);
if (!controller->isLoaded()) {

View File

@ -28,7 +28,7 @@ extern "C" {
using namespace QGBA;
ShaderSelector::ShaderSelector(Display* display, ConfigController* config, QWidget* parent)
: QDialog(parent)
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint)
, m_display(display)
, m_config(config)
, m_shaderPath("")