-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 75a707b..b490072 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -52,48 +52,49 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) | |||
52 | Config cfg("Vmemo"); | 52 | Config cfg("Vmemo"); |
53 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 53 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
54 | AlertCheckBox->setChecked(cfg.readBoolEntry("Alert")); | 54 | AlertCheckBox->setChecked(cfg.readBoolEntry("Alert")); |
55 | 55 | ||
56 | cfg.setGroup("Record"); | 56 | cfg.setGroup("Record"); |
57 | int rate=config.readNumEntry("SampleRate", 22050); | 57 | int rate=config.readNumEntry("SampleRate", 22050); |
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 | 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) { | 71 | if (uname(&name) != -1) { |
72 | QString release=name.release; | 72 | QString release=name.release; |
73 | 73 | ||
74 | if( release.find("embedix",0,TRUE) !=-1) | 74 | if( release.find("embedix",0,TRUE) !=-1) |
75 | stereoCheckBox->hide(); | 75 | stereoCheckBox->hide(); |
76 | } | ||
76 | // else | 77 | // else |
77 | // stereoCheckBox->hide(); | 78 | // stereoCheckBox->hide(); |
78 | 79 | ||
79 | 80 | ||
80 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); | 81 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); |
81 | 82 | ||
82 | cfg.setGroup("Defaults"); | 83 | cfg.setGroup("Defaults"); |
83 | keyComboBox->setCurrentItem(cfg.readNumEntry("toggleKey") ); | 84 | keyComboBox->setCurrentItem(cfg.readNumEntry("toggleKey") ); |
84 | 85 | ||
85 | updateStorageCombo(); | 86 | updateStorageCombo(); |
86 | 87 | ||
87 | connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int))); | 88 | connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int))); |
88 | connect(mic, SIGNAL(valueChanged(int)), this, SLOT(setMic(int))); | 89 | connect(mic, SIGNAL(valueChanged(int)), this, SLOT(setMic(int))); |
89 | connect(qApp, SIGNAL( volumeChanged(bool) ), this, SLOT( volumeChanged(bool) ) ); | 90 | connect(qApp, SIGNAL( volumeChanged(bool) ), this, SLOT( volumeChanged(bool) ) ); |
90 | connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) ); | 91 | connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) ); |
91 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); | 92 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); |
92 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT(setKeyButton(const QString &))); | 93 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT(setKeyButton(const QString &))); |
93 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 94 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
94 | } | 95 | } |
95 | 96 | ||
96 | // void SoundSettings::reject() | 97 | // void SoundSettings::reject() |
97 | // { | 98 | // { |
98 | // qDebug("reject"); | 99 | // qDebug("reject"); |
99 | // Config config( "qpe"); | 100 | // Config config( "qpe"); |