diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-08-19 20:47:11 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-08-19 20:47:11 +0000 |
commit | 2b21eff0d9a8e0d10974ee2aed38944ed6adf6ac (patch) | |
tree | 4d0e97d25754c451526ed3f50e235d77e38107fc /ui/qt/proto_tree.h | |
parent | c48bc11626d8ce80f862e158d51a560f8adb16f4 (diff) | |
download | wireshark-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.h | 5 |
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 |