-rw-r--r-- | noncore/apps/opie-console/btconfigwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/btconfigwidget.cpp b/noncore/apps/opie-console/btconfigwidget.cpp index 7f82e06..232e497 100644 --- a/noncore/apps/opie-console/btconfigwidget.cpp +++ b/noncore/apps/opie-console/btconfigwidget.cpp | |||
@@ -143,65 +143,65 @@ void BTConfigWidget::save( Profile& prof ) { | |||
143 | 143 | ||
144 | switch( m_base->parity() ) { | 144 | switch( m_base->parity() ) { |
145 | case IOLayerBase::Odd: | 145 | case IOLayerBase::Odd: |
146 | parity = 2; | 146 | parity = 2; |
147 | break; | 147 | break; |
148 | case IOLayerBase::Even: | 148 | case IOLayerBase::Even: |
149 | parity = 1; | 149 | parity = 1; |
150 | break; | 150 | break; |
151 | case IOLayerBase::NonePar: | 151 | case IOLayerBase::NonePar: |
152 | parity = 0; | 152 | parity = 0; |
153 | break; | 153 | break; |
154 | } | 154 | } |
155 | 155 | ||
156 | switch( m_base->speed() ) { | 156 | switch( m_base->speed() ) { |
157 | case IOLayerBase::Baud_115200: | 157 | case IOLayerBase::Baud_115200: |
158 | speed = 115200; | 158 | speed = 115200; |
159 | break; | 159 | break; |
160 | case IOLayerBase::Baud_57600: | 160 | case IOLayerBase::Baud_57600: |
161 | speed = 57600; | 161 | speed = 57600; |
162 | break; | 162 | break; |
163 | case IOLayerBase::Baud_38400: | 163 | case IOLayerBase::Baud_38400: |
164 | speed = 38400; | 164 | speed = 38400; |
165 | break; | 165 | break; |
166 | case IOLayerBase::Baud_19200: | 166 | case IOLayerBase::Baud_19200: |
167 | speed = 19200; | 167 | speed = 19200; |
168 | break; | 168 | break; |
169 | case IOLayerBase::Baud_4800: | 169 | case IOLayerBase::Baud_4800: |
170 | speed = 4800; | 170 | speed = 4800; |
171 | break; | 171 | break; |
172 | case IOLayerBase::Baud_2400: | 172 | case IOLayerBase::Baud_2400: |
173 | speed = 2400; | 173 | speed = 2400; |
174 | break; | 174 | break; |
175 | case IOLayerBase::Baud_1200; | 175 | case IOLayerBase::Baud_1200: |
176 | speed = 1200; | 176 | speed = 1200; |
177 | break; | 177 | break; |
178 | default: | 178 | default: |
179 | case IOLayerBase::Baud_9600: | 179 | case IOLayerBase::Baud_9600: |
180 | speed = 9600; | 180 | speed = 9600; |
181 | break; | 181 | break; |
182 | } | 182 | } |
183 | 183 | ||
184 | prof.writeEntry("Flow", flow); | 184 | prof.writeEntry("Flow", flow); |
185 | prof.writeEntry("Parity", parity); | 185 | prof.writeEntry("Parity", parity); |
186 | prof.writeEntry("Speed", speed); | 186 | prof.writeEntry("Speed", speed); |
187 | prof.writeEntry("Mac", m_mac->text() ); | 187 | prof.writeEntry("Mac", m_mac->text() ); |
188 | } | 188 | } |
189 | 189 | ||
190 | void BTConfigWidget::slotMacRadio( bool on ) { | 190 | void BTConfigWidget::slotMacRadio( bool on ) { |
191 | if ( on ) { | 191 | if ( on ) { |
192 | m_devRadio->setChecked( false ); | 192 | m_devRadio->setChecked( false ); |
193 | m_deviceCmb->setEnabled( false ); | 193 | m_deviceCmb->setEnabled( false ); |
194 | m_mac->setEnabled( true ); | 194 | m_mac->setEnabled( true ); |
195 | } else { | 195 | } else { |
196 | m_devRadio->setChecked( true ); | 196 | m_devRadio->setChecked( true ); |
197 | } | 197 | } |
198 | } | 198 | } |
199 | 199 | ||
200 | void BTConfigWidget::slotDevRadio( bool on ) { | 200 | void BTConfigWidget::slotDevRadio( bool on ) { |
201 | if ( on ) { | 201 | if ( on ) { |
202 | m_macRadio->setChecked( false ); | 202 | m_macRadio->setChecked( false ); |
203 | m_deviceCmb->setEnabled( true ); | 203 | m_deviceCmb->setEnabled( true ); |
204 | m_mac->setEnabled( false ); | 204 | m_mac->setEnabled( false ); |
205 | } else { | 205 | } else { |
206 | m_macRadio->setChecked( true ); | 206 | m_macRadio->setChecked( true ); |
207 | } | 207 | } |