aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-30 13:55:46 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-30 21:12:42 +0000
commitda07c62bd0d3a93d37e7ef66c7396c38999e0bcb (patch)
tree2f778f72c534b50a0f570a3df298e850c9dab8cb /ui/qt/proto_tree.cpp
parent9603db48d1ab9900c7bd7544e6351b72f34d7aa1 (diff)
More context menu updates.
Add "Follow" and "Export Packet Bytes" to the packet detail context menu. Remove duplicate SCTP menu. Remove redunant action text. Change-Id: If69815dc774806e267fbd71aa390b0af6f3b0d14 Reviewed-on: https://code.wireshark.org/review/9829 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r--ui/qt/proto_tree.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp
index e22424d937..1e54bc3f44 100644
--- a/ui/qt/proto_tree.cpp
+++ b/ui/qt/proto_tree.cpp
@@ -216,15 +216,18 @@ ProtoTree::ProtoTree(QWidget *parent) :
// " <menuitem name='Color10' action='/Colorize with Filter/Color 10'/>\n"
// " <menuitem name='NewColoringRule' action='/Colorize with Filter/New Coloring Rule'/>\n"
// " </menu>\n"
-// " <menuitem name='FollowTCPStream' action='/Follow TCP Stream'/>\n"
-// " <menuitem name='FollowUDPStream' action='/Follow UDP Stream'/>\n"
-// " <menuitem name='FollowSSLStream' action='/Follow SSL Stream'/>\n"
+
+ main_menu_item = window()->findChild<QMenu *>("menuFollow");
+ submenu = new QMenu(main_menu_item->title());
+ ctx_menu_.addMenu(submenu);
+ submenu->addAction(window()->findChild<QAction *>("actionAnalyzeFollowTCPStream"));
+ submenu->addAction(window()->findChild<QAction *>("actionAnalyzeFollowUDPStream"));
+ submenu->addAction(window()->findChild<QAction *>("actionAnalyzeFollowSSLStream"));
ctx_menu_.addSeparator();
main_menu_item = window()->findChild<QMenu *>("menuEditCopy");
submenu = new QMenu(main_menu_item->title());
ctx_menu_.addMenu(submenu);
-
submenu->addAction(window()->findChild<QAction *>("actionCopyAllVisibleItems"));
submenu->addAction(window()->findChild<QAction *>("actionCopyAllVisibleSelectedTreeItems"));
submenu->addAction(window()->findChild<QAction *>("actionEditCopyDescription"));
@@ -251,8 +254,11 @@ ProtoTree::ProtoTree(QWidget *parent) :
submenu->addAction(action);
copy_actions_ << action;
-// " <menuitem name='ExportSelectedPacketBytes' action='/ExportSelectedPacketBytes'/>\n"
-// ctx_menu_.addSeparator();
+ action = window()->findChild<QAction *>("actionFileExportPacketBytes");
+ ctx_menu_.addAction(action);
+
+ ctx_menu_.addSeparator();
+
// " <menuitem name='WikiProtocolPage' action='/WikiProtocolPage'/>\n"
// " <menuitem name='FilterFieldReference' action='/FilterFieldReference'/>\n"
// " <menuitem name='ProtocolHelp' action='/ProtocolHelp'/>\n"