author | llornkcor <llornkcor> | 2002-06-23 18:33:17 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-23 18:33:17 (UTC) |
commit | b50f663aabaf51821a35a94354237a3387954e79 (patch) (side-by-side diff) | |
tree | c2dc2879fc7d6964aea4201995927e967f3bade3 /noncore/settings/sound/soundsettings.cpp | |
parent | f0e656b51a2dcee1dec594636cbc1ba8d4b11eef (diff) | |
download | opie-b50f663aabaf51821a35a94354237a3387954e79.zip opie-b50f663aabaf51821a35a94354237a3387954e79.tar.gz opie-b50f663aabaf51821a35a94354237a3387954e79.tar.bz2 |
added recording time limit
Diffstat (limited to 'noncore/settings/sound/soundsettings.cpp') (more/less context) (ignore 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 @@ -77,4 +77,16 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) // else // stereoCheckBox->hide(); + int sRate=config.readNumEntry("SizeLimit", 30); + if(sRate ==30) + timeLimitComboBox->setCurrentItem(0); + else if(sRate==20) + timeLimitComboBox->setCurrentItem(1); + else if(sRate == 15) + timeLimitComboBox->setCurrentItem(2); + else if(sRate == 10) + + timeLimitComboBox->setCurrentItem(3); + else + timeLimitComboBox->setCurrentItem(4); @@ -92,4 +104,5 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT(setKeyButton(const QString &))); + connect( timeLimitComboBox,SIGNAL(activated( const QString &)),this,SLOT(setSizeLimitButton(const QString &))); // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); } @@ -249,2 +262,10 @@ void SoundSettings::updateLocationCombo() { } + +void SoundSettings::setSizeLimitButton(const QString &index) { + + Config cfg("Vmemo"); + cfg.setGroup("Record"); + cfg.writeEntry("SizeLimit", index); + cfg.write(); +} |