aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/qt/lte_mac_statistics_dialog.cpp13
-rw-r--r--ui/qt/lte_mac_statistics_dialog.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/ui/qt/lte_mac_statistics_dialog.cpp b/ui/qt/lte_mac_statistics_dialog.cpp
index 40ceaf2..eb5c31c 100644
--- a/ui/qt/lte_mac_statistics_dialog.cpp
+++ b/ui/qt/lte_mac_statistics_dialog.cpp
@@ -574,6 +574,10 @@ LteMacStatisticsDialog::LteMacStatisticsDialog(QWidget &parent, CaptureFile &cf,
// Set handler for when the tree item changes to set the appropriate labels.
connect(statsTreeWidget(), SIGNAL(itemSelectionChanged()),
this, SLOT(updateHeaderLabels()));
+
+ // Set handler for when display filter string is changed.
+ connect(this, SIGNAL(updateFilter(QString)),
+ this, SLOT(filterUpdated(QString)));
}
// Destructor.
@@ -786,7 +790,7 @@ void LteMacStatisticsDialog::fillTree()
{
if (!registerTapListener("mac-lte",
this,
- NULL,
+ displayFilter_.toLatin1().data(),
TL_REQUIRES_NOTHING,
tapReset,
tapPacket,
@@ -832,6 +836,13 @@ void LteMacStatisticsDialog::captureFileClosing()
WiresharkDialog::captureFileClosing();
}
+// Store filter from signal.
+void LteMacStatisticsDialog::filterUpdated(QString filter)
+{
+ displayFilter_ = filter;
+}
+
+
// Stat command + args
static void
diff --git a/ui/qt/lte_mac_statistics_dialog.h b/ui/qt/lte_mac_statistics_dialog.h
index d3ad652..d2b01d2 100644
--- a/ui/qt/lte_mac_statistics_dialog.h
+++ b/ui/qt/lte_mac_statistics_dialog.h
@@ -60,6 +60,7 @@ private:
QLabel *commonStatsLabel_;
QCheckBox *showSRFilterCheckBox_;
QCheckBox *showRACHFilterCheckBox_;
+ QString displayFilter_;
// Callbacks for register_tap_listener
static void tapReset(void *ws_dlg_ptr);
@@ -81,6 +82,7 @@ private slots:
virtual void fillTree();
void updateHeaderLabels();
void captureFileClosing();
+ void filterUpdated(QString filter);
};
#endif // __LTE_MAC_STATISTICS_DIALOG_H__