author | llornkcor <llornkcor> | 2002-06-22 20:32:19 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-22 20:32:19 (UTC) |
commit | 383df9711110be29b1b50e568672bb88626fee8b (patch) (side-by-side diff) | |
tree | c5945b942a498c4281703da8ebcf6a6dc317bda6 | |
parent | a15b6b4a548a62cf3971eda7442d7e68c20c5374 (diff) | |
download | opie-383df9711110be29b1b50e568672bb88626fee8b.zip opie-383df9711110be29b1b50e568672bb88626fee8b.tar.gz opie-383df9711110be29b1b50e568672bb88626fee8b.tar.bz2 |
hide stereo combo for mono vmemo devices
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index f417b79..75a707b 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp @@ -33,2 +33,8 @@ +#include <sys/utsname.h> +#include <sys/time.h> +#include <sys/types.h> +#include <unistd.h> +#include <stdio.h> +#include <sys/stat.h> @@ -62,3 +68,13 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) - stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); + stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); //TODO hide if zaurus- mono only + struct utsname name; /* check for embedix kernel running on the zaurus*/ + if (uname(&name) != -1) { + QString release=name.release; + + if( release.find("embedix",0,TRUE) !=-1) + stereoCheckBox->hide(); +// else +// stereoCheckBox->hide(); + + sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); |