author | llornkcor <llornkcor> | 2003-08-10 23:02:47 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-08-10 23:02:47 (UTC) |
commit | 44bb1f23dcd0bea4775ba4b48fb370ad651290cc (patch) (unidiff) | |
tree | 83028d0b3af21790e9e69dd83ce495a020bea948 /noncore/settings/sound/soundsettings.cpp | |
parent | 41b3267ce7142a62ac3d3d6eef3feb33f00deda5 (diff) | |
download | opie-44bb1f23dcd0bea4775ba4b48fb370ad651290cc.zip opie-44bb1f23dcd0bea4775ba4b48fb370ad651290cc.tar.gz opie-44bb1f23dcd0bea4775ba4b48fb370ad651290cc.tar.bz2 |
add adpcm checkbox
Diffstat (limited to 'noncore/settings/sound/soundsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 09d2e92..4bc86fa 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -108,2 +108,7 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) | |||
108 | updateStorageCombo(); | 108 | updateStorageCombo(); |
109 | |||
110 | Config vmCfg("Vmemo"); | ||
111 | vmCfg.setGroup("Defaults"); | ||
112 | adpcmCheckBox->setChecked( vmCfg.readBoolEntry("use_ADPCM", 0)); | ||
113 | |||
109 | connect( LocationComboBox,SIGNAL(activated(const QString &)), this, | 114 | connect( LocationComboBox,SIGNAL(activated(const QString &)), this, |
@@ -116,3 +121,6 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) | |||
116 | SLOT( restartOpie( bool))); | 121 | SLOT( restartOpie( bool))); |
117 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 122 | connect( adpcmCheckBox,SIGNAL( toggled( bool)), this, |
123 | SLOT( slotAdpcm( bool))); | ||
124 | |||
125 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | ||
118 | } | 126 | } |
@@ -166,3 +174,2 @@ void SoundSettings::cleanUp() { | |||
166 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); | 174 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); |
167 | |||
168 | if(keyReset && noWarning) { | 175 | if(keyReset && noWarning) { |
@@ -207 +214,7 @@ void SoundSettings::restartOpie(bool b) { | |||
207 | 214 | ||
215 | void SoundSettings::slotAdpcm(bool b) { | ||
216 | Config vmCfg("Vmemo"); | ||
217 | vmCfg.setGroup("Defaults"); | ||
218 | vmCfg.writeEntry("use_ADPCM", b); | ||
219 | vmCfg.write(); | ||
220 | } | ||