diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-12-07 01:46:20 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-12-07 01:46:20 +0000 |
commit | 59cd52b5caae3806fbaba984833a8edd2752f2c4 (patch) | |
tree | f886df01065a589edecb4617770e7f599ef396cf /ui/qt/proto_tree.h | |
parent | 2b240a299b3cf26a5ef52e400588bb2e56d2a57f (diff) | |
download | wireshark-59cd52b5caae3806fbaba984833a8edd2752f2c4.tar.gz |
Implement the items under "Edit→Copy", "Analyze→Apply as Filter" and
"Analyze→Prepare a Filter". Add a context menu to the protocol tree and
fill in the items we've implemented so far.
Add an "applyAllPreferences" method and corresponding
"preferencesUpdated" signal to wsApp. Use it to set the maximum display
filter combo count.
Move the packet filtering code from the display filter edit to the main
window (which makes more sense and matches what we're doing in the GTK+
version and gets rid of more global cfile references). Try to center the
display filter edit button images.
Use a different "close" button in the main toolbar. It looks better but
is still wrong (on OS X at least).
svn path=/trunk/; revision=46434
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 9ac95e05f0..bd18ae4f58 100644 --- a/ui/qt/proto_tree.h +++ b/ui/qt/proto_tree.h @@ -29,6 +29,7 @@ #include <epan/proto.h> #include <QTreeWidget> +#include <QMenu> Q_DECLARE_METATYPE(field_info *) @@ -40,7 +41,11 @@ public: void fillProtocolTree(proto_tree *protocol_tree); void clear(); +protected: + void contextMenuEvent(QContextMenuEvent *event); + private: + QMenu ctx_menu_; signals: void protoItemSelected(QString &); |