Diffstat (limited to 'noncore/settings/sound/soundsettings.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 672548f..3ceaf0c 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -78,2 +78,14 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) | |||
78 | // stereoCheckBox->hide(); | 78 | // stereoCheckBox->hide(); |
79 | int sRate=config.readNumEntry("SizeLimit", 30); | ||
80 | if(sRate ==30) | ||
81 | timeLimitComboBox->setCurrentItem(0); | ||
82 | else if(sRate==20) | ||
83 | timeLimitComboBox->setCurrentItem(1); | ||
84 | else if(sRate == 15) | ||
85 | timeLimitComboBox->setCurrentItem(2); | ||
86 | else if(sRate == 10) | ||
87 | |||
88 | timeLimitComboBox->setCurrentItem(3); | ||
89 | else | ||
90 | timeLimitComboBox->setCurrentItem(4); | ||
79 | 91 | ||
@@ -93,2 +105,3 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) | |||
93 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT(setKeyButton(const QString &))); | 105 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT(setKeyButton(const QString &))); |
106 | connect( timeLimitComboBox,SIGNAL(activated( const QString &)),this,SLOT(setSizeLimitButton(const QString &))); | ||
94 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 107 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
@@ -250 +263,9 @@ void SoundSettings::updateLocationCombo() { | |||
250 | } | 263 | } |
264 | |||
265 | void SoundSettings::setSizeLimitButton(const QString &index) { | ||
266 | |||
267 | Config cfg("Vmemo"); | ||
268 | cfg.setGroup("Record"); | ||
269 | cfg.writeEntry("SizeLimit", index); | ||
270 | cfg.write(); | ||
271 | } | ||