diff options
Diffstat (limited to 'ui')
-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__ |