summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/scanlistitem.cpp
Unidiff
Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/scanlistitem.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlistitem.cpp b/noncore/net/wellenreiter/gui/scanlistitem.cpp
index 189a12d..398b42d 100644
--- a/noncore/net/wellenreiter/gui/scanlistitem.cpp
+++ b/noncore/net/wellenreiter/gui/scanlistitem.cpp
@@ -35,25 +35,29 @@ MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QS
35} 35}
36 36
37MScanListItem::MScanListItem( QListViewItem* parent, QString type, QString essid, QString macaddr, 37MScanListItem::MScanListItem( QListViewItem* parent, QString type, QString essid, QString macaddr,
38 bool wep, int channel, int signal ) 38 bool wep, int channel, int signal )
39 :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) 39 :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null )
40{ 40{
41 qDebug( "creating scanlist item" ); 41 qDebug( "creating scanlist item" );
42 decorateItem( type, essid, macaddr, wep, channel, signal ); 42 decorateItem( type, essid, macaddr, wep, channel, signal );
43} 43}
44 44
45void MScanListItem::decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal ) 45void MScanListItem::decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal )
46{ 46{
47 qDebug( "decorating scanlist item" ); 47 qDebug( "decorating scanlist item %s / %s / %s [%d]",
48 (const char*) type,
49 (const char*) essid,
50 (const char*) macaddr,
51 channel );
48 52
49 // set icon for managed or adhoc mode 53 // set icon for managed or adhoc mode
50 QString name; 54 QString name;
51 name.sprintf( "wellenreiter/%s", (const char*) type ); 55 name.sprintf( "wellenreiter/%s", (const char*) type );
52 setPixmap( col_type, Resource::loadPixmap( name ) ); 56 setPixmap( col_type, Resource::loadPixmap( name ) );
53 57
54 // set icon for wep (wireless encryption protocol) 58 // set icon for wep (wireless encryption protocol)
55 if ( wep ) 59 if ( wep )
56 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); // rename the pixmap! 60 setPixmap( col_wep, Resource::loadPixmap( "wellenreiter/cracked" ) ); // rename the pixmap!
57 61
58 // set channel and signal text 62 // set channel and signal text
59 63