예제 #1
0
void MusicRemoteWidget::setVolumeValue(int index)
{
    blockSignals(true);
    m_volumeSlider->setValue(index);
    musicVolumeChanged(index);
    blockSignals(false);
}
예제 #2
0
void SoundConfigWindow::saveChanges()
{
    QSettings s;

    s.setValue("BattleAudio/CryVolume", cryVolume);
    s.setValue("BattleAudio/MusicVolume", musicVolume);
    s.setValue("BattleAudio/MusicDirectory", musicPath);
    s.setValue("BattleAudio/PlayMusic", playMusic);
    s.setValue("BattleAudio/PlaySounds", playCries);

    emit cryVolumeChanged(cryVolume);
    emit musicVolumeChanged(musicVolume);
}
void SoundConfigWindow::saveChanges()
{
    QSettings s;

    s.setValue("battle_cry_volume", cryVolume);
    s.setValue("battle_music_volume", musicVolume);
    s.setValue("battle_music_directory", musicPath);
    s.setValue("play_battle_music", playMusic);
    s.setValue("play_battle_sounds", playCries);

    emit cryVolumeChanged(cryVolume);
    emit musicVolumeChanged(musicVolume);
}