author | llornkcor <llornkcor> | 2002-05-23 02:03:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-23 02:03:12 (UTC) |
commit | d295491048567c8424643b983a21dc503857d91a (patch) (side-by-side diff) | |
tree | 54cc32b49eef8518ffbeeacb99ffcbb35ec60769 /core/applets/vmemo | |
parent | 7cec3bc3d3b8945e80c9171b9173d3d2dbdd2eaf (diff) | |
download | opie-d295491048567c8424643b983a21dc503857d91a.zip opie-d295491048567c8424643b983a21dc503857d91a.tar.gz opie-d295491048567c8424643b983a21dc503857d91a.tar.bz2 |
new sound config
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index c27050d..7cc4062 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -269,7 +269,7 @@ bool VMemo::startRecording() { if ( recording) return FALSE;; - Config config( "Sound" ); + Config config( "Vmemo" ); config.setGroup( "System" ); useAlerts = config.readBoolEntry("Alert"); @@ -288,16 +288,14 @@ bool VMemo::startRecording() { return FALSE; } - Config vmCfg("VMemo"); - vmCfg.setGroup("Defaults"); + config.setGroup("Defaults"); QDateTime dt = QDateTime::currentDateTime(); QString fName; - Config cfg( "Sound" ); - cfg.setGroup( "System" ); + config.setGroup( "System" ); fName = QPEApplication::documentDir() ; - fileName = cfg.readEntry("RecLocation", fName); + fileName = config.readEntry("RecLocation", fName); int s; s=fileName.find(':'); @@ -325,7 +323,7 @@ bool VMemo::startRecording() { } QArray<int> cats(1); - cats[0] = vmCfg.readNumEntry("Category", 0); + cats[0] = config.readNumEntry("Category", 0); QString dlName("vm_"); dlName += dt.toString(); @@ -346,7 +344,7 @@ void VMemo::stopRecording() { int VMemo::openDSP() { - Config cfg("Sound"); + Config cfg("Vmemo"); cfg.setGroup("Record"); speed = cfg.readNumEntry("SampleRate", 22050); |