diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-02-28 11:09:54 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-02-28 11:09:54 +0800 |
commit | 60f306607ead64f329a4c1f875af3b7ff5ad1149 (patch) | |
tree | c43f4904460bc07e9c1635d10d0a11be41bcd1b4 /qmpmainwindow.cpp | |
parent | 20283f4c5629f659d05ba18475492c43163bb16e (diff) | |
download | QMidiPlayer-60f306607ead64f329a4c1f875af3b7ff5ad1149.tar.xz |
Forbidden Magic.
Diffstat (limited to 'qmpmainwindow.cpp')
-rw-r--r-- | qmpmainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qmpmainwindow.cpp b/qmpmainwindow.cpp index 1e05c5c..73b9b73 100644 --- a/qmpmainwindow.cpp +++ b/qmpmainwindow.cpp @@ -47,6 +47,7 @@ qmpMainWindow::qmpMainWindow(QWidget *parent) : {ui->pbChannels->setChecked(true);on_pbChannels_clicked();} if(qmpSettingsWindow::getSettingsIntf()->value("DialogStatus/EfxWShown",0).toInt()) {ui->pbEfx->setChecked(true);on_pbEfx_clicked();} + ui->vsMasterVol->setValue(qmpSettingsWindow::getSettingsIntf()->value("Audio/Gain",50).toInt()); connect(fnA1,SIGNAL(triggered()),this,SLOT(onfnA1())); connect(fnA2,SIGNAL(triggered()),this,SLOT(onfnA2())); connect(timer,SIGNAL(timeout()),this,SLOT(updateWidgets())); @@ -318,6 +319,7 @@ void qmpMainWindow::on_hsTimer_sliderReleased() void qmpMainWindow::on_vsMasterVol_valueChanged() { if(!stopped)player->setGain(ui->vsMasterVol->value()/250.); + qmpSettingsWindow::getSettingsIntf()->setValue("Audio/Gain",ui->vsMasterVol->value()); } void qmpMainWindow::on_pbStop_clicked() |