author | llornkcor <llornkcor> | 2002-07-26 00:48:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-26 00:48:09 (UTC) |
commit | f3678966b4f08e9cc99b5f625c028e6f2d29a8ae (patch) (unidiff) | |
tree | a9d3b94d3768d288f2de47660f55c56e4c3d6a07 | |
parent | cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041 (diff) | |
download | opie-f3678966b4f08e9cc99b5f625c028e6f2d29a8ae.zip opie-f3678966b4f08e9cc99b5f625c028e6f2d29a8ae.tar.gz opie-f3678966b4f08e9cc99b5f625c028e6f2d29a8ae.tar.bz2 |
really fix
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 010e0af..cddb478 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -138,51 +138,54 @@ int set=0; | |||
138 | LocationComboBox->insertStringList(list); | 138 | LocationComboBox->insertStringList(list); |
139 | qDebug("set item %d", set); | 139 | qDebug("set item %d", set); |
140 | LocationComboBox->setCurrentItem(set); | 140 | LocationComboBox->setCurrentItem(set); |
141 | } | 141 | } |
142 | 142 | ||
143 | void SoundSettings::setLocation(const QString & string) { | 143 | void SoundSettings::setLocation(const QString & string) { |
144 | Config config( "Vmemo" ); | 144 | Config config( "Vmemo" ); |
145 | config.setGroup( "System" ); | 145 | config.setGroup( "System" ); |
146 | config.writeEntry("RecLocation",string); | 146 | config.writeEntry("RecLocation",string); |
147 | qDebug("set location "+string); | 147 | qDebug("set location "+string); |
148 | config.write(); | 148 | config.write(); |
149 | } | 149 | } |
150 | 150 | ||
151 | void SoundSettings::cleanUp() { | 151 | void SoundSettings::cleanUp() { |
152 | Config cfg("Vmemo"); | 152 | Config cfg("Vmemo"); |
153 | cfg.writeEntry("Alert",AlertCheckBox->isChecked()); | 153 | cfg.writeEntry("Alert",AlertCheckBox->isChecked()); |
154 | 154 | ||
155 | cfg.setGroup("Record"); | 155 | cfg.setGroup("Record"); |
156 | cfg.writeEntry("SampleRate",sampleRate->currentText()); | 156 | cfg.writeEntry("SampleRate",sampleRate->currentText()); |
157 | cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); | 157 | cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); |
158 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); | 158 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); |
159 | 159 | ||
160 | if(keyReset) QCopEnvelope ("QPE/System", "restart()"); | 160 | if(keyReset) QCopEnvelope ("QPE/System", "restart()"); |
161 | 161 | ||
162 | } | 162 | } |
163 | 163 | ||
164 | void SoundSettings::setKeyButton(const QString &name) { | 164 | void SoundSettings::setKeyButton(const QString &name) { |
165 | Config cfg("Vmemo"); | 165 | Config cfg("Vmemo"); |
166 | cfg.setGroup("Defaults"); | 166 | cfg.setGroup("Defaults"); |
167 | cfg.writeEntry( "toggleKey", keyComboBox->currentItem() ); | 167 | cfg.writeEntry( "toggleKey", keyComboBox->currentItem() ); |
168 | keyReset = TRUE; | 168 | keyReset = TRUE; |
169 | if(keyComboBox->currentItem() == 1) | 169 | if(keyComboBox->currentItem() == 1) |
170 | cfg.writeEntry( "hideIcon", 0 ); | 170 | cfg.writeEntry( "hideIcon", 0 ); |
171 | else | 171 | else |
172 | cfg.writeEntry( "hideIcon", 1); | 172 | cfg.writeEntry( "hideIcon", 1); |
173 | 173 | ||
174 | 174 | ||
175 | cfg.write(); | 175 | cfg.write(); |
176 | } | 176 | } |
177 | 177 | ||
178 | void SoundSettings::updateLocationCombo() { | 178 | void SoundSettings::updateLocationCombo() { |
179 | 179 | ||
180 | } | 180 | } |
181 | 181 | ||
182 | void SoundSettings::setSizeLimitButton(const QString &index) { | 182 | void SoundSettings::setSizeLimitButton(const QString &index) { |
183 | 183 | ||
184 | Config cfg("Vmemo"); | 184 | Config cfg("Vmemo"); |
185 | cfg.setGroup("Record"); | 185 | cfg.setGroup("Record"); |
186 | cfg.writeEntry("SizeLimit", index); | 186 | if(index.find("Unlimited",0,TRUE) != -1) |
187 | cfg.writeEntry("SizeLimit", -1); | ||
188 | else | ||
189 | cfg.writeEntry("SizeLimit", index); | ||
187 | cfg.write(); | 190 | cfg.write(); |
188 | } | 191 | } |