summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-12-08 18:13:23 (UTC)
committer mickeyl <mickeyl>2003-12-08 18:13:23 (UTC)
commitbb4cc2c9e5b583daa8da5cfc64b010e3aa8136ed (patch) (unidiff)
tree602b27ae3ab1dbf5f20ed2e794b2d34c0bb3abfd
parentbbc55b1790e93973c0fdf7ad5f758f6ff4da2269 (diff)
downloadopie-bb4cc2c9e5b583daa8da5cfc64b010e3aa8136ed.zip
opie-bb4cc2c9e5b583daa8da5cfc64b010e3aa8136ed.tar.gz
opie-bb4cc2c9e5b583daa8da5cfc64b010e3aa8136ed.tar.bz2
use more sane standard interval
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp
index f82c088..68da712 100644
--- a/noncore/net/wellenreiter/gui/configwindow.cpp
+++ b/noncore/net/wellenreiter/gui/configwindow.cpp
@@ -251,65 +251,65 @@ void WellenreiterConfigWindow::load()
251 251
252 QString interface = c->readEntry( "name", "<none>" ); 252 QString interface = c->readEntry( "name", "<none>" );
253 if ( interface != "<none>" ) 253 if ( interface != "<none>" )
254 { 254 {
255#if QT_VERSION < 300 255#if QT_VERSION < 300
256 interfaceName->insertItem( interface, 0 ); 256 interfaceName->insertItem( interface, 0 );
257 interfaceName->setCurrentItem( 0 ); 257 interfaceName->setCurrentItem( 0 );
258#else 258#else
259 interfaceName->setCurrentText( interface ); 259 interfaceName->setCurrentText( interface );
260#endif 260#endif
261 261
262 QString device = c->readEntry( "type", "<select>" ); 262 QString device = c->readEntry( "type", "<select>" );
263#if QT_VERSION < 300 263#if QT_VERSION < 300
264 for ( int i = 0; i < deviceType->count(); ++i ) 264 for ( int i = 0; i < deviceType->count(); ++i )
265 { 265 {
266 if ( deviceType->text( i ) == device ) 266 if ( deviceType->text( i ) == device )
267 { 267 {
268 deviceType->setCurrentItem( i ); 268 deviceType->setCurrentItem( i );
269 break; 269 break;
270 } 270 }
271 } 271 }
272#else 272#else
273 deviceType->setCurrentText( device ); 273 deviceType->setCurrentText( device );
274#endif 274#endif
275 } 275 }
276 else 276 else
277 { 277 {
278 performAutodetection(); 278 performAutodetection();
279 } 279 }
280 280
281 prismHeader->setChecked( c->readBoolEntry( "prism", false ) ); 281 prismHeader->setChecked( c->readBoolEntry( "prism", false ) );
282 hopChannels->setChecked( c->readBoolEntry( "hop", true ) ); 282 hopChannels->setChecked( c->readBoolEntry( "hop", true ) );
283 hopInterval->setValue( c->readNumEntry( "interval", 100 ) ); 283 hopInterval->setValue( c->readNumEntry( "interval", 250 ) );
284 adaptiveHopping->setChecked( c->readBoolEntry( "adaptive", true ) ); 284 adaptiveHopping->setChecked( c->readBoolEntry( "adaptive", true ) );
285 285
286 c->setGroup( "Capture" ); 286 c->setGroup( "Capture" );
287 captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) ); 287 captureFileName->setText( c->readEntry( "filename", "/tmp/capture" ) );
288 288
289 c->setGroup( "UI" ); 289 c->setGroup( "UI" );
290 lookupVendor->setChecked( c->readBoolEntry( "lookupVendor", true ) ); 290 lookupVendor->setChecked( c->readBoolEntry( "lookupVendor", true ) );
291 openTree->setChecked( c->readBoolEntry( "openTree", true ) ); 291 openTree->setChecked( c->readBoolEntry( "openTree", true ) );
292 disablePM->setChecked( c->readBoolEntry( "disablePM", true ) ); 292 disablePM->setChecked( c->readBoolEntry( "disablePM", true ) );
293 293
294 c->setGroup( "GPS" ); 294 c->setGroup( "GPS" );
295 enableGPS->setChecked( c->readBoolEntry( "use", false ) ); 295 enableGPS->setChecked( c->readBoolEntry( "use", false ) );
296#if QT_VERSION < 300 296#if QT_VERSION < 300
297 gpsdHost->insertItem( c->readEntry( "host", "localhost" ), 0 ); 297 gpsdHost->insertItem( c->readEntry( "host", "localhost" ), 0 );
298 gpsdHost->setCurrentItem( 0 ); 298 gpsdHost->setCurrentItem( 0 );
299#else 299#else
300 gpsdHost->setCurrentText( c->readEntry( "host", "localhost" ) ); 300 gpsdHost->setCurrentText( c->readEntry( "host", "localhost" ) );
301#endif 301#endif
302 gpsdPort->setValue( c->readNumEntry( "port", 2947 ) ); 302 gpsdPort->setValue( c->readNumEntry( "port", 2947 ) );
303 startGPS->setChecked( c->readBoolEntry( "start", false ) ); 303 startGPS->setChecked( c->readBoolEntry( "start", false ) );
304 commandGPS->setText( c->readEntry( "command", "gpsd -p /dev/ttyS3 -s 57600" ) ); 304 commandGPS->setText( c->readEntry( "command", "gpsd -p /dev/ttyS3 -s 57600" ) );
305 305
306#endif 306#endif
307} 307}
308 308
309 309
310void WellenreiterConfigWindow::save() 310void WellenreiterConfigWindow::save()
311{ 311{
312#ifdef Q_WS_X11 312#ifdef Q_WS_X11
313 #warning Persistent Configuration not yet implemented for standalone X11 build 313 #warning Persistent Configuration not yet implemented for standalone X11 build
314#else 314#else
315 qDebug( "saving configuration settings..." ); 315 qDebug( "saving configuration settings..." );