aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpsettingswindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop/qmpsettingswindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpsettingswindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.cpp b/qmidiplayer-desktop/qmpsettingswindow.cpp
index 72d1cb5..abd8213 100644
--- a/qmidiplayer-desktop/qmpsettingswindow.cpp
+++ b/qmidiplayer-desktop/qmpsettingswindow.cpp
@@ -28,10 +28,12 @@ qmpSettingsWindow::qmpSettingsWindow(QWidget *parent) :
ui->pbRemove->setIcon(QIcon(getThemedIcon(":/img/remove.png")));
ui->pbDown->setIcon(QIcon(getThemedIcon(":/img/down.png")));
ui->pbUp->setIcon(QIcon(getThemedIcon(":/img/up.png")));
+ cw=new qmpCustomizeWindow(this);
}
qmpSettingsWindow::~qmpSettingsWindow()
{
+ delete cw;
delete settings;settings=NULL;
delete ui;
}
@@ -654,3 +656,13 @@ void qmpSettingsWindow::setOptionEnumInt(std::string key,int val)
if(customOptions[key].widget)
((QComboBox*)customOptions[key].widget)->setCurrentIndex(val);
}
+
+void qmpSettingsWindow::on_pbCustomizeTb_clicked()
+{
+ cw->launch(0);
+}
+
+void qmpSettingsWindow::on_pbCustomizeAct_clicked()
+{
+ cw->launch(1);
+}