diff options
author | Chris Xiong <chirs241097@gmail.com> | 2017-02-12 00:29:01 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2017-02-12 00:29:01 +0800 |
commit | d779d32c8c32e0e0c22662046498620b11fa46de (patch) | |
tree | ba63a0d33d1fb6a07bca30d74dd72934b9ef69ce /qmidiplayer-desktop/qmpsettingswindow.cpp | |
parent | acf466561f17bf0eb6c19ea0467b27f5392aeb36 (diff) | |
download | QMidiPlayer-d779d32c8c32e0e0c22662046498620b11fa46de.tar.xz |
New functionality API. Port built-in features to the new API.
Start the revamp of the main Window. Credit of the new design goes to @BLumia.
Diffstat (limited to 'qmidiplayer-desktop/qmpsettingswindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpsettingswindow.cpp | 12 |
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); +} |