summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/scanlist.cpp
authormickeyl <mickeyl>2003-09-26 10:25:38 (UTC)
committer mickeyl <mickeyl>2003-09-26 10:25:38 (UTC)
commit0009e5f8bfb3050a7906bf03ce7b9870275496e6 (patch) (unidiff)
tree197c61e4bb1eda153ca5bf9fa6986bffafaea137 /noncore/net/wellenreiter/gui/scanlist.cpp
parent11370952060598f7c79f9df70289f74ecc7693a1 (diff)
downloadopie-0009e5f8bfb3050a7906bf03ce7b9870275496e6.zip
opie-0009e5f8bfb3050a7906bf03ce7b9870275496e6.tar.gz
opie-0009e5f8bfb3050a7906bf03ce7b9870275496e6.tar.bz2
add automatic tree-opening if checked in config
Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/scanlist.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp
index d695c17..245290d 100644
--- a/noncore/net/wellenreiter/gui/scanlist.cpp
+++ b/noncore/net/wellenreiter/gui/scanlist.cpp
@@ -19,12 +19,13 @@
19 19
20#include <assert.h> 20#include <assert.h>
21#include <qcursor.h> 21#include <qcursor.h>
22#include <qdatetime.h> 22#include <qdatetime.h>
23#include <qtextstream.h> 23#include <qtextstream.h>
24#include <qpopupmenu.h> 24#include <qpopupmenu.h>
25#include <qcheckbox.h>
25 26
26#ifdef QWS 27#ifdef QWS
27#include <qpe/qpeapplication.h> 28#include <qpe/qpeapplication.h>
28#include <opie/odevice.h> 29#include <opie/odevice.h>
29using namespace Opie; 30using namespace Opie;
30#endif 31#endif
@@ -466,12 +467,18 @@ void MScanListItem::decorateItem( QString type, QString essid, QString macaddr,
466 _type = type; 467 _type = type;
467 _essid = essid; 468 _essid = essid;
468 _macaddr = macaddr; 469 _macaddr = macaddr;
469 _channel = channel; 470 _channel = channel;
470 _beacons = 1; 471 _beacons = 1;
471 _signal = 0; 472 _signal = 0;
473
474 if ( WellenreiterConfigWindow::instance()->openTree->isChecked() )
475 {
476 listView()->ensureItemVisible( this );
477 }
478
472} 479}
473 480
474 481
475void MScanListItem::setManufacturer( const QString& manufacturer ) 482void MScanListItem::setManufacturer( const QString& manufacturer )
476{ 483{
477 setText( col_manuf, manufacturer ); 484 setText( col_manuf, manufacturer );