summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-02 02:13:03 (UTC)
committer llornkcor <llornkcor>2002-07-02 02:13:03 (UTC)
commit75b6c4bb13fcc6d54a249b7885b212f473d654a3 (patch) (side-by-side diff)
treee94c1b5ac37b9470cd0fadd45b8fc14a9cc4e746
parent947bd80f93998f75378db1d677b85eb121c10a1d (diff)
downloadopie-75b6c4bb13fcc6d54a249b7885b212f473d654a3.zip
opie-75b6c4bb13fcc6d54a249b7885b212f473d654a3.tar.gz
opie-75b6c4bb13fcc6d54a249b7885b212f473d654a3.tar.bz2
added a few dirs to the list
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index 6fea3ed..a163d38 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -201,44 +201,48 @@ void SoundSettings::micChanged( bool )
{
Config config( "qpe" );
config.setGroup( "Volume" );
mic->setValue(100-config.readNumEntry("Mic"));
}
void SoundSettings::updateStorageCombo() {
Config config( "Vmemo" );
config.setGroup( "System" );
QString loc = config.readEntry("RecLocation","/");
int i=0;
int set=0;
StorageInfo storageInfo;
QString sName, sPath;
QStringList list;
+ list << "Documents : "+QPEApplication::documentDir();
+ list << "tmp : /tmp";
+
const QList<FileSystem> &fs = storageInfo.fileSystems();
QListIterator<FileSystem> it ( fs );
for( ; it.current(); ++it ){
const QString name = (*it)->name();
const QString path = (*it)->path();
qDebug("storage name "+name +" storage path is "+path);
list << name + ": " +path;
if( loc.find( path,0,TRUE) != -1)
set = i;
// if(dit.current()->file().find(path) != -1 ) storage=name;
i++;
}
+
LocationComboBox->insertStringList(list);
qDebug("set item %d", set);
LocationComboBox->setCurrentItem(set);
}
void SoundSettings::setLocation(const QString & string) {
Config config( "Vmemo" );
config.setGroup( "System" );
config.writeEntry("RecLocation",string);
qDebug("set location "+string);
config.write();
}
void SoundSettings::cleanUp() {
qDebug("cleanup");
Config config( "qpe" );