Diffstat (limited to 'noncore/net/wellenreiter/gui/packetview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/packetview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/packetview.cpp b/noncore/net/wellenreiter/gui/packetview.cpp index 3d3aa18..4df01da 100644 --- a/noncore/net/wellenreiter/gui/packetview.cpp +++ b/noncore/net/wellenreiter/gui/packetview.cpp | |||
@@ -63,49 +63,49 @@ PacketView::PacketView( QWidget * parent, const char * name, WFlags f ) | |||
63 | _packets.setAutoDelete( true ); | 63 | _packets.setAutoDelete( true ); |
64 | 64 | ||
65 | connect( _number, SIGNAL( valueChanged( int ) ), this, SLOT( showPacket( int ) ) ); | 65 | connect( _number, SIGNAL( valueChanged( int ) ), this, SLOT( showPacket( int ) ) ); |
66 | } | 66 | } |
67 | 67 | ||
68 | void PacketView::add( const OPacket* p ) | 68 | void PacketView::add( const OPacket* p ) |
69 | { | 69 | { |
70 | _packets.append( p ); | 70 | _packets.append( p ); |
71 | // Add Circular Buffer and check for number of elements here | 71 | // Add Circular Buffer and check for number of elements here |
72 | } | 72 | } |
73 | 73 | ||
74 | void PacketView::showPacket( int number ) | 74 | void PacketView::showPacket( int number ) |
75 | { | 75 | { |
76 | _list->clear(); | 76 | _list->clear(); |
77 | _hex->setText(""); | 77 | _hex->setText(""); |
78 | const OPacket* p = _packets.at( number ); | 78 | const OPacket* p = _packets.at( number ); |
79 | 79 | ||
80 | if ( p ) | 80 | if ( p ) |
81 | { | 81 | { |
82 | _doSubPackets( const_cast<QObjectList*>( p->children() ), 0 ); | 82 | _doSubPackets( const_cast<QObjectList*>( p->children() ), 0 ); |
83 | _doHexPacket( p ); | 83 | _doHexPacket( p ); |
84 | } | 84 | } |
85 | else | 85 | else |
86 | { | 86 | { |
87 | qDebug( "D'oh! No packet!" ); | 87 | odebug << "D'oh! No packet!" << oendl; |
88 | } | 88 | } |
89 | } | 89 | } |
90 | 90 | ||
91 | void PacketView::_doSubPackets( QObjectList* l, int counter ) | 91 | void PacketView::_doSubPackets( QObjectList* l, int counter ) |
92 | { | 92 | { |
93 | if (!l) return; | 93 | if (!l) return; |
94 | QObject* o = l->first(); | 94 | QObject* o = l->first(); |
95 | while ( o ) | 95 | while ( o ) |
96 | { | 96 | { |
97 | new OListViewItem( _list, QString::number( counter++ ), o->name() ); | 97 | new OListViewItem( _list, QString::number( counter++ ), o->name() ); |
98 | _doSubPackets( const_cast<QObjectList*>( o->children() ), counter ); | 98 | _doSubPackets( const_cast<QObjectList*>( o->children() ), counter ); |
99 | o = l->next(); | 99 | o = l->next(); |
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
103 | void PacketView::_doHexPacket( const OPacket* p ) | 103 | void PacketView::_doHexPacket( const OPacket* p ) |
104 | { | 104 | { |
105 | _hex->setText( p->dump( 16 ) ); | 105 | _hex->setText( p->dump( 16 ) ); |
106 | } | 106 | } |
107 | 107 | ||
108 | const QString PacketView::getLog() const | 108 | const QString PacketView::getLog() const |
109 | { | 109 | { |
110 | } | 110 | } |
111 | 111 | ||