diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-08-18 11:46:12 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-20 23:12:37 +0000 |
commit | 2ed3d91b45332a2cbb4114b61f18c80fb28a6840 (patch) | |
tree | 1c37bec81ce931d54d8e0a3f59812dcdfe9c505f /ui/qt/multicast_statistics_dialog.cpp | |
parent | 0f9bbbc6f7146747841760102a74efb96161ad99 (diff) | |
download | wireshark-2ed3d91b45332a2cbb4114b61f18c80fb28a6840.tar.gz |
Add the WLAN statistics dialog.
Instead of splitting the stats into two lists as with the GTK+ UI, add
everything to an expandable tree. This allows viewing nodes on more than
one network.
Rename the top-level Bluetooth menu item to Wireless and put the WLAN
stats dialog there.
The Qt UI matches SSIDs (WlanNetworkTreeWidgetItem::isMatch) a bit
differently than the GTK+ UI. Try to make the logic as plain as possible
since we'll likely have to update it in the future.
The addition of a custom BSSID address types means that we can't assume
that everything is AT_ETHER. Add routines for checking for broadcast
BSSIDs and comparing only the data portions of addresses.
Move PercentBarDelegate into its own module. Use it in
WlanStatisticsDialog.
Change-Id: Ie4214eb00671a890871380c4a07213ebfb7585c6
Reviewed-on: https://code.wireshark.org/review/10171
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/multicast_statistics_dialog.cpp')
-rw-r--r-- | ui/qt/multicast_statistics_dialog.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/qt/multicast_statistics_dialog.cpp b/ui/qt/multicast_statistics_dialog.cpp index 4b4da27446..c818ce4e3f 100644 --- a/ui/qt/multicast_statistics_dialog.cpp +++ b/ui/qt/multicast_statistics_dialog.cpp @@ -306,10 +306,6 @@ void MulticastStatisticsDialog::tapDraw(void *mti_ptr) ms_ti->updateStreamInfo(stream_info); cur_row++; } - - for (int col = 0; col < ms_dlg->statsTreeWidget()->columnCount() - 1; col++) { - ms_dlg->statsTreeWidget()->resizeColumnToContents(col); - } } const QString MulticastStatisticsDialog::filterExpression() @@ -442,6 +438,9 @@ void MulticastStatisticsDialog::fillTree() tapDraw(tapinfo_); foreach (QWidget *w, disable_widgets) w->setEnabled(true); + for (int col = 0; col < statsTreeWidget()->columnCount() - 1; col++) { + statsTreeWidget()->resizeColumnToContents(col); + } updateWidgets(); } |