summaryrefslogtreecommitdiff
path: root/noncore/settings/sound/soundsettings.cpp
Unidiff
Diffstat (limited to 'noncore/settings/sound/soundsettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index 1143e82..17dbdc0 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -36,6 +36,9 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl )
36 touchsound->setChecked(config.readBoolEntry("Touch")); 36 touchsound->setChecked(config.readBoolEntry("Touch"));
37 keysound->setChecked(config.readBoolEntry("Key")); 37 keysound->setChecked(config.readBoolEntry("Key"));
38 dblClickRuns->setText(config.readEntry("DblClickVolumeRuns", 38
39 "/opt/QtPalmtop/bin/vmemomanager")); 39 config.setGroup("Record");
40 sampleRate->setText(config.readEntry("SampleRate", "11025"));
41 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0));
42 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0));
40 43
41 connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int))); 44 connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int)));
@@ -52,4 +55,9 @@ void SoundSettings::reject()
52 setMic(100-config.readNumEntry("Mic")); 55 setMic(100-config.readNumEntry("Mic"));
53 56
57 config.setGroup("Record");
58 sampleRate->setText(config.readEntry("SampleRate", "11025"));
59 stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0));
60 sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0));
61
54 QDialog::reject(); 62 QDialog::reject();
55} 63}
@@ -63,6 +71,13 @@ void SoundSettings::accept()
63 config.writeEntry("Touch",touchsound->isChecked()); 71 config.writeEntry("Touch",touchsound->isChecked());
64 config.writeEntry("Key",keysound->isChecked()); 72 config.writeEntry("Key",keysound->isChecked());
65 config.writeEntry("DblClickVolumeRuns", dblClickRuns->text()); 73
66 setVolume(volume->value()); 74 setVolume(volume->value());
75 setMic(mic->value());
76
77 config.setGroup("Record");
78 config.writeEntry("SampleRate",sampleRate->text());
79 config.writeEntry("Stereo",stereoCheckBox->isChecked());
80 config.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked());
81
67 QDialog::accept(); 82 QDialog::accept();
68} 83}