summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index 5cb59c5..6fea3ed 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -58,33 +58,43 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl )
58 if(rate == 8000) 58 if(rate == 8000)
59 sampleRate->setCurrentItem(0); 59 sampleRate->setCurrentItem(0);
60 else if(rate == 11025) 60 else if(rate == 11025)
61 sampleRate->setCurrentItem(1); 61 sampleRate->setCurrentItem(1);
62 else if(rate == 22050) 62 else if(rate == 22050)
63 sampleRate->setCurrentItem(2); 63 sampleRate->setCurrentItem(2);
64 else if(rate == 33075) 64 else if(rate == 33075)
65 sampleRate->setCurrentItem(3); 65 sampleRate->setCurrentItem(3);
66 else if(rate==44100) 66 else if(rate==44100)
67 sampleRate->setCurrentItem(4); 67 sampleRate->setCurrentItem(4);
68 68
69 stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only 69 stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only
70
71#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) //since ipaq and zaurus have particular
72 //devices
73 bool systemZaurus=FALSE;
70 struct utsname name; /* check for embedix kernel running on the zaurus*/ 74 struct utsname name; /* check for embedix kernel running on the zaurus*/
71 if (uname(&name) != -1) { 75 if (uname(&name) != -1) {// TODO change this here,...
72 QString release=name.release; 76 QString release=name.release;
73 77 if( release.find("embedix",0,TRUE) != -1) {
74 if( release.find("embedix",0,TRUE) !=-1) 78 qDebug("IS System Zaurus");
75 stereoCheckBox->hide(); 79 systemZaurus=TRUE;
80 }
76 } 81 }
77// else 82 if(!systemZaurus) {
78// stereoCheckBox->hide(); 83 stereoCheckBox->setChecked(TRUE);
84 }
85 stereoCheckBox->setEnabled(FALSE);
86 sixteenBitCheckBox->setEnabled(FALSE);
87#else
88#endif
79 int sRate=cfg.readNumEntry("SizeLimit", 30); 89 int sRate=cfg.readNumEntry("SizeLimit", 30);
80 qDebug("%d",sRate); 90 qDebug("%d",sRate);
81 91
82 if(sRate ==30) 92 if(sRate ==30)
83 timeLimitComboBox->setCurrentItem(0); 93 timeLimitComboBox->setCurrentItem(0);
84 else if(sRate==20) 94 else if(sRate==20)
85 timeLimitComboBox->setCurrentItem(1); 95 timeLimitComboBox->setCurrentItem(1);
86 else if(sRate == 15) 96 else if(sRate == 15)
87 timeLimitComboBox->setCurrentItem(2); 97 timeLimitComboBox->setCurrentItem(2);
88 else if(sRate == 10) 98 else if(sRate == 10)
89 timeLimitComboBox->setCurrentItem(3); 99 timeLimitComboBox->setCurrentItem(3);
90 else 100 else