aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-01-14 12:23:07 -0800
committerRoland Knall <rknall@gmail.com>2018-01-15 08:41:23 +0000
commit2f31016e6c292899c36f90c736c0c84fbe9ee539 (patch)
tree071cd06e698f35d881c38390e6219538f44241dd /ui/qt/proto_tree.h
parente2ab8151b6255dce8f3e841f9b17e487f4ba05d2 (diff)
Qt: Expand subtrees when a packet is selected.
ProtoTree::rowsInserted was expanding top-level items properly but not subtrees. Make sure we do so. Bug: 14340 Change-Id: I6c73fd09643b52d43014352816d0dd4838dbcb1d Reviewed-on: https://code.wireshark.org/review/25316 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/proto_tree.h')
-rw-r--r--ui/qt/proto_tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/proto_tree.h b/ui/qt/proto_tree.h
index 6254e62521..57729623c1 100644
--- a/ui/qt/proto_tree.h
+++ b/ui/qt/proto_tree.h
@@ -23,6 +23,7 @@
#include <QMenu>
class ProtoTreeModel;
+class ProtoNode;
class ProtoTree : public QTreeView
{
@@ -62,6 +63,7 @@ private:
capture_file *cap_file_;
void saveSelectedField(QModelIndex &index);
+ static void foreachSyncExpansion(proto_node *node, gpointer proto_tree_ptr);
signals:
void fieldSelected(FieldInformation *);