aboutsummaryrefslogtreecommitdiff
path: root/qmpsettingswindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-01 23:54:06 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-01 23:54:06 +0800
commitd418712c981d9854fa6429d65773368ca63b8dac (patch)
tree48eb1f25753a1734a3d7cf5d8303e7936c4844f3 /qmpsettingswindow.cpp
parent3db127ce64eadb54568e218124744a1de713667e (diff)
downloadQMidiPlayer-d418712c981d9854fa6429d65773368ca63b8dac.tar.xz
Strawberry Crisis. (WTF)
Diffstat (limited to 'qmpsettingswindow.cpp')
-rw-r--r--qmpsettingswindow.cpp33
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();
+}