Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlistitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlistitem.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlistitem.cpp b/noncore/net/wellenreiter/gui/scanlistitem.cpp index 63caefb..9532a01 100644 --- a/noncore/net/wellenreiter/gui/scanlistitem.cpp +++ b/noncore/net/wellenreiter/gui/scanlistitem.cpp @@ -26,23 +26,23 @@ const int col_channel = 3; const int col_wep = 4; const int col_traffic = 5; -MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString ap, +MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString macaddr, bool wep, int channel, int signal ) - :QListViewItem( parent, essid, ap, QString::null, QString::null, QString::null ) + :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) { qDebug( "creating scanlist item" ); - decorateItem( type, essid, ap, wep, channel, signal ); + decorateItem( type, essid, macaddr, wep, channel, signal ); } -MScanListItem::MScanListItem( QListViewItem* parent, QString type, QString essid, QString ap, +MScanListItem::MScanListItem( QListViewItem* parent, QString type, QString essid, QString macaddr, bool wep, int channel, int signal ) - :QListViewItem( parent, essid, ap, QString::null, QString::null, QString::null ) + :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) { qDebug( "creating scanlist item" ); - decorateItem( type, essid, ap, wep, channel, signal ); + decorateItem( type, essid, macaddr, wep, channel, signal ); } -void MScanListItem::decorateItem( QString type, QString essid, QString ap, bool wep, int channel, int signal ) +void MScanListItem::decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal ) { qDebug( "decorating scanlist item" ); @@ -58,6 +58,7 @@ void MScanListItem::decorateItem( QString type, QString essid, QString ap, bool // set channel and signal text setText( col_sig, QString::number( signal ) ); setText( col_channel, QString::number( channel ) ); + //setText listView()->triggerUpdate(); |