forked from osmocom/wireshark
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>
This commit is contained in:
parent
cf110add65
commit
e1f3d9dcbe
|
@ -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
|
||||
|
|
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue