summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-26 00:45:18 (UTC)
committer llornkcor <llornkcor>2002-07-26 00:45:18 (UTC)
commitcf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041 (patch) (unidiff)
tree1761b748606385d299063ce00fc2d32baea1189d
parentf3556b164b79fc2a9607681bd6bdf2a4c8522d5e (diff)
downloadopie-cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041.zip
opie-cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041.tar.gz
opie-cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041.tar.bz2
fix size limit config
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index 99fccf7..010e0af 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -64,66 +64,68 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl )
64 64
65 stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only 65 stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only
66 66
67#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) //since ipaq and zaurus have particular 67#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) //since ipaq and zaurus have particular
68 //devices 68 //devices
69 bool systemZaurus=FALSE; 69 bool systemZaurus=FALSE;
70 struct utsname name; /* check for embedix kernel running on the zaurus*/ 70 struct utsname name; /* check for embedix kernel running on the zaurus*/
71 if (uname(&name) != -1) {// TODO change this here,... 71 if (uname(&name) != -1) {// TODO change this here,...
72 QString release=name.release; 72 QString release=name.release;
73 if( release.find("embedix",0,TRUE) != -1) { 73 if( release.find("embedix",0,TRUE) != -1) {
74 qDebug("IS System Zaurus"); 74 qDebug("IS System Zaurus");
75 systemZaurus=TRUE; 75 systemZaurus=TRUE;
76 } 76 }
77 } 77 }
78 if(!systemZaurus) { 78 if(!systemZaurus) {
79 stereoCheckBox->setChecked(TRUE); 79 stereoCheckBox->setChecked(TRUE);
80 } 80 }
81 stereoCheckBox->setEnabled(FALSE); 81 stereoCheckBox->setEnabled(FALSE);
82 sixteenBitCheckBox->setEnabled(FALSE); 82 sixteenBitCheckBox->setEnabled(FALSE);
83#else 83#else
84#endif 84#endif
85 int sRate=cfg.readNumEntry("SizeLimit", 30); 85 int sRate=cfg.readNumEntry("SizeLimit", 30);
86 qDebug("%d",sRate); 86 qDebug("%d",sRate);
87 87
88 if(sRate ==30) 88 if(sRate ==30)
89 timeLimitComboBox->setCurrentItem(0); 89 timeLimitComboBox->setCurrentItem(0);
90 else if(sRate==20) 90 else if(sRate==20)
91 timeLimitComboBox->setCurrentItem(1); 91 timeLimitComboBox->setCurrentItem(1);
92 else if(sRate == 15) 92 else if(sRate == 15)
93 timeLimitComboBox->setCurrentItem(2); 93 timeLimitComboBox->setCurrentItem(2);
94 else if(sRate == 10) 94 else if(sRate == 10)
95 timeLimitComboBox->setCurrentItem(3); 95 timeLimitComboBox->setCurrentItem(3);
96 else 96 else if(sRate == 5)
97 timeLimitComboBox->setCurrentItem(4); 97 timeLimitComboBox->setCurrentItem(4);
98 else
99 timeLimitComboBox->setCurrentItem(5);
98 100
99 sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); 101 sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1));
100 102
101 cfg.setGroup("Defaults"); 103 cfg.setGroup("Defaults");
102 keyComboBox->setCurrentItem(cfg.readNumEntry("toggleKey") ); 104 keyComboBox->setCurrentItem(cfg.readNumEntry("toggleKey") );
103 105
104 updateStorageCombo(); 106 updateStorageCombo();
105 connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); 107 connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &)));
106 connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT( setKeyButton(const QString &))); 108 connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT( setKeyButton(const QString &)));
107 connect( timeLimitComboBox,SIGNAL(activated( const QString &)),this,SLOT( setSizeLimitButton(const QString &))); 109 connect( timeLimitComboBox,SIGNAL(activated( const QString &)),this,SLOT( setSizeLimitButton(const QString &)));
108// connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); 110// connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) );
109} 111}
110void SoundSettings::updateStorageCombo() { 112void SoundSettings::updateStorageCombo() {
111 113
112 Config config( "Vmemo" ); 114 Config config( "Vmemo" );
113 config.setGroup( "System" ); 115 config.setGroup( "System" );
114 QString loc = config.readEntry("RecLocation","/"); 116 QString loc = config.readEntry("RecLocation","/");
115int i=0; 117int i=0;
116int set=0; 118int set=0;
117 StorageInfo storageInfo; 119 StorageInfo storageInfo;
118 QString sName, sPath; 120 QString sName, sPath;
119 QStringList list; 121 QStringList list;
120 list << "Documents : "+QPEApplication::documentDir(); 122 list << "Documents : "+QPEApplication::documentDir();
121 list << "tmp : /tmp"; 123 list << "tmp : /tmp";
122 124
123 const QList<FileSystem> &fs = storageInfo.fileSystems(); 125 const QList<FileSystem> &fs = storageInfo.fileSystems();
124 QListIterator<FileSystem> it ( fs ); 126 QListIterator<FileSystem> it ( fs );
125 for( ; it.current(); ++it ){ 127 for( ; it.current(); ++it ){
126 const QString name = (*it)->name(); 128 const QString name = (*it)->name();
127 const QString path = (*it)->path(); 129 const QString path = (*it)->path();
128 qDebug("storage name "+name +" storage path is "+path); 130 qDebug("storage name "+name +" storage path is "+path);
129 list << name + ": " +path; 131 list << name + ": " +path;