Qt: Implement MulticastStatisticsDialog::treeItemData
Implement MulticastStatisticsDialog::treeItemData so that the "Copy" button works. Bug: 14477 Change-Id: I8e7ff2a41b0f14e600b0781c3a01e03270c26ae7 Reviewed-on: https://code.wireshark.org/review/26430 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
parent
c52b28c284
commit
1a52e085c1
|
@ -298,6 +298,17 @@ void MulticastStatisticsDialog::tapDraw(mcaststream_tapinfo_t *tapinfo)
|
|||
}
|
||||
}
|
||||
|
||||
QList<QVariant> MulticastStatisticsDialog::treeItemData(QTreeWidgetItem *ti) const
|
||||
{
|
||||
MulticastStatTreeWidgetItem *ms_ti = dynamic_cast<MulticastStatTreeWidgetItem*>(ti);
|
||||
if (ms_ti) {
|
||||
return ms_ti->rowData();
|
||||
}
|
||||
else {
|
||||
return QList<QVariant>();
|
||||
}
|
||||
}
|
||||
|
||||
const QString MulticastStatisticsDialog::filterExpression()
|
||||
{
|
||||
QString filter_expr;
|
||||
|
|
|
@ -35,6 +35,7 @@ private:
|
|||
static void tapReset(mcaststream_tapinfo_t *tapinfo);
|
||||
static void tapDraw(mcaststream_tapinfo_t *tapinfo);
|
||||
|
||||
virtual QList<QVariant> treeItemData(QTreeWidgetItem *ti) const;
|
||||
virtual const QString filterExpression();
|
||||
|
||||
private slots:
|
||||
|
|
Loading…
Reference in New Issue