summaryrefslogtreecommitdiff
path: root/ui/qt/proto_tree.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-08-19 20:47:11 +0000
committerGerald Combs <gerald@wireshark.org>2012-08-19 20:47:11 +0000
commit2b21eff0d9a8e0d10974ee2aed38944ed6adf6ac (patch)
tree4d0e97d25754c451526ed3f50e235d77e38107fc /ui/qt/proto_tree.h
parentc48bc11626d8ce80f862e158d51a560f8adb16f4 (diff)
downloadwireshark-2b21eff0d9a8e0d10974ee2aed38944ed6adf6ac.tar.gz
Add automatic tree expansion. Get rid of some unnecessary void * casts.
Fix a couple of compilation warnings. svn path=/trunk/; revision=44587
Diffstat (limited to 'ui/qt/proto_tree.h')
-rw-r--r--ui/qt/proto_tree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/proto_tree.h b/ui/qt/proto_tree.h
index a8a615e98b..8610095b8a 100644
--- a/ui/qt/proto_tree.h
+++ b/ui/qt/proto_tree.h
@@ -30,6 +30,7 @@
#include <QTreeWidget>
+Q_DECLARE_METATYPE(field_info *)
class ProtoTree : public QTreeWidget
{
@@ -47,7 +48,11 @@ signals:
public slots:
void updateSelectionStatus(QTreeWidgetItem*);
+ void expand(const QModelIndex & index);
+ void collapse(const QModelIndex & index);
void expandSubtrees();
+ void expandAll();
+ void collapseAll();
};
#endif // PROTO_TREE_H