diff options
Diffstat (limited to 'qmpsettingswindow.cpp')
-rw-r--r-- | qmpsettingswindow.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/qmpsettingswindow.cpp b/qmpsettingswindow.cpp new file mode 100644 index 0000000..d27547d --- /dev/null +++ b/qmpsettingswindow.cpp @@ -0,0 +1,33 @@ +#include "qmpsettingswindow.hpp" +#include "ui_qmpsettingswindow.h" +#include "qmpmainwindow.hpp" + +qmpSettingsWindow::qmpSettingsWindow(QWidget *parent) : + QDialog(parent), + ui(new Ui::qmpSettingsWindow) +{ + ui->setupUi(this); + connect(this,SIGNAL(dialogClosing()),parent,SLOT(dialogClosed())); +} + +qmpSettingsWindow::~qmpSettingsWindow() +{ + delete ui; +} + +void qmpSettingsWindow::closeEvent(QCloseEvent *event) +{ + setVisible(false); + emit dialogClosing(); + event->accept(); +} + +void qmpSettingsWindow::on_buttonBox_accepted() +{ + emit dialogClosing(); +} + +void qmpSettingsWindow::on_buttonBox_rejected() +{ + emit dialogClosing(); +} |