• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision00403d50da6c2321254eb21fda6e5b47d3c5e5ee (tree)
l'heure2014-05-17 18:43:17
Auteuralucky4416 <alucky4416@user...>
Commiteralucky4416

Message de Log

feature: default set SoundVolumeLevel when startup.

Change Summary

Modification

--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -75,9 +75,11 @@ MainWindow::MainWindow(QWidget *parent) :
7575 // this, SLOT(slot_calc_end(QString)));
7676 ThPlayMusic->start();
7777
78- float vlmlevel = ThPlayMusic->GetSoundVolume() * 100.0;
79- // qDebug() << "vlmlevel=" << vlmlevel ;
80- ui->hSlider_Volume->setValue((int)vlmlevel);
78+ if (ui->hSlider_Volume->value() == 0) {
79+ float vlmlevel = ThPlayMusic->GetSoundVolume() * 100.0;
80+ // qDebug() << "vlmlevel=" << vlmlevel ;
81+ ui->hSlider_Volume->setValue((int)vlmlevel);
82+ }
8183
8284 // ScheduleManager Thread
8385 ThSchMngr = new ThSchManager(this);
@@ -152,7 +154,7 @@ void MainWindow::LoadSaveSetting(QString filepath, bool store = false)
152154 ui->checkBox_AutoStart->setChecked(settings.value("SETTING/AUTO_START", false).toBool());
153155
154156 // Sound Volume Level
155- ui->hSlider_Volume->setValue((settings.value("SETTING/VOLUME_LEVEL", 10).toInt()));
157+ ui->hSlider_Volume->setValue((settings.value("SETTING/VOLUME_LEVEL", 0).toInt()));
156158
157159 // Exclude SS flag
158160 ui->checkBox_Exclude_SS->setChecked(settings.value("SETTING/EXCLUDE_SS", true).toBool());
@@ -279,6 +281,10 @@ void MainWindow::on_pushButton_clicked()
279281 QMessageBox::warning(this, "Warning", tr("File Not Found."));
280282 return;
281283 }
284+ if (ui->hSlider_Volume->value() == 0) {
285+ QMessageBox::warning(this, "Warning", ("Sound Volume = 0"));
286+ return;
287+ }
282288
283289 ThSchMngr->setExcludeSS(ui->checkBox_Exclude_SS->isChecked());
284290 ThSchMngr->setExcludeHolidays(ui->checkBox_Exclude_Holiday->isChecked());