diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2017-11-24 21:07:38 +0000 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-11-25 09:29:45 +0000 |
commit | e1f3d9dcbee7dac3ad06d9a0ca2e63896e1f7305 (patch) | |
tree | 95c647ef6122f2abda957d7e03fba87bb00537cf /ui/qt | |
parent | cf110add653b5c0ed531f306b8d429a41c860d0a (diff) |
LTE RLC Stats: make display filter field work.
Change-Id: Ic3c9ebb176bcc7c3973aca382c270aacac7283af
TODO: the same for LTE MAC Stats..
Reviewed-on: https://code.wireshark.org/review/24577
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/lte_rlc_statistics_dialog.cpp | 14 | ||||
-rw-r--r-- | ui/qt/lte_rlc_statistics_dialog.h | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/ui/qt/lte_rlc_statistics_dialog.cpp b/ui/qt/lte_rlc_statistics_dialog.cpp index 6142c2732e..f289eaf3ef 100644 --- a/ui/qt/lte_rlc_statistics_dialog.cpp +++ b/ui/qt/lte_rlc_statistics_dialog.cpp @@ -736,6 +736,10 @@ LteRlcStatisticsDialog::LteRlcStatisticsDialog(QWidget &parent, CaptureFile &cf, // Set handler for when the tree item changes to set the appropriate labels. connect(statsTreeWidget(), SIGNAL(itemSelectionChanged()), this, SLOT(updateItemSelectionChanged())); + + // Set handler for when display filter string is changed. + connect(this, SIGNAL(updateFilter(QString)), + this, SLOT(filterUpdated(QString))); } // Destructor. @@ -847,7 +851,7 @@ void LteRlcStatisticsDialog::fillTree() { if (!registerTapListener("rlc-lte", this, - NULL, + displayFilter_.toLatin1().data(), TL_REQUIRES_NOTHING, tapReset, tapPacket, @@ -932,6 +936,14 @@ void LteRlcStatisticsDialog::launchDLGraphButtonClicked() } } +// Store filter from signal. +void LteRlcStatisticsDialog::filterUpdated(QString filter) +{ + displayFilter_ = filter; +} + + + // Stat command + args static void diff --git a/ui/qt/lte_rlc_statistics_dialog.h b/ui/qt/lte_rlc_statistics_dialog.h index 8d83b68f02..d81ac57268 100644 --- a/ui/qt/lte_rlc_statistics_dialog.h +++ b/ui/qt/lte_rlc_statistics_dialog.h @@ -52,6 +52,7 @@ private: QCheckBox *showRACHFilterCheckBox_; QPushButton *launchULGraph_; QPushButton *launchDLGraph_; + QString displayFilter_; CaptureFile &cf_; int packet_count_; @@ -74,6 +75,7 @@ private slots: void useRLCFramesFromMacCheckBoxToggled(bool state); void launchULGraphButtonClicked(); void launchDLGraphButtonClicked(); + void filterUpdated(QString filter); }; #endif // __LTE_RLC_STATISTICS_DIALOG_H__ |