summaryrefslogtreecommitdiff
path: root/ui/qt/protocol_preferences_menu.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-27 16:17:44 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-28 03:54:38 +0000
commit65a1f60e70184faf0238e4df2585af056be1e4c7 (patch)
tree5d071fb00afc44faf08c489ccf98d073033fb0ab /ui/qt/protocol_preferences_menu.h
parent01bc31cded7290433704e9ef98a90e338c3ea28b (diff)
downloadwireshark-65a1f60e70184faf0238e4df2585af056be1e4c7.tar.gz
Add "Disable Protocol..." to the ProtoTree context menu.
Assume that "I don't want to see this" counts as a preference and add it under the "Protocol Preferences" submenu. Change-Id: I396e2476509db9df895826f8817b191893bcb14a Reviewed-on: https://code.wireshark.org/review/9812 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/protocol_preferences_menu.h')
-rw-r--r--ui/qt/protocol_preferences_menu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/protocol_preferences_menu.h b/ui/qt/protocol_preferences_menu.h
index d85855a4a7..9a5e9dc800 100644
--- a/ui/qt/protocol_preferences_menu.h
+++ b/ui/qt/protocol_preferences_menu.h
@@ -24,6 +24,7 @@
#include <QMenu>
+struct _protocol;
struct pref_module;
struct preference;
@@ -44,8 +45,10 @@ signals:
private:
QString module_name_;
struct pref_module *module_;
+ struct _protocol *protocol_;
private slots:
+ void disableProtocolTriggered();
void modulePreferencesTriggered();
void editorPreferenceTriggered();
void boolPreferenceTriggered();