-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.cpp | 21 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.h | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index 8c2015e..f24e09f 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp @@ -564,6 +564,27 @@ void MScanListItem::receivedBeacon() MScanListItem* p = (MScanListItem*) parent(); if ( p ) p->receivedBeacon(); } +QString MScanListItem::key( int id, bool b )const { + QString str; + + /* + * Pad the amount of received packages, number + * of the channel. + */ + switch( id ) { + case col_sig: + str = text(col_sig).rightJustify( 20, '0' ); + break; + case col_channel: + str = text(col_channel).rightJustify( 2, '0' ); + break; + default: + str = Opie::Ui::OListViewItem::key( id, b ); + break; + } + + return str; +} diff --git a/noncore/net/wellenreiter/gui/scanlist.h b/noncore/net/wellenreiter/gui/scanlist.h index 6a80f70..8b3814a 100644 --- a/noncore/net/wellenreiter/gui/scanlist.h +++ b/noncore/net/wellenreiter/gui/scanlist.h @@ -107,12 +107,14 @@ class MScanListItem: public Opie::Ui::OListViewItem void setLocation( const QString& location ); virtual Opie::Ui::OListViewItem* childFactory(); virtual void serializeTo( QDataStream& s ) const; virtual void serializeFrom( QDataStream& s ); + virtual QString key( int id, bool )const; + private: QString _type; QString _essid; QString _macaddr; bool _wep; int _channel; |