aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.cpp
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2015-03-09 08:11:13 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-05-15 06:05:01 +0000
commit57716e13659a8c9c26124e249a86fce9577d609f (patch)
tree4e2d950b9364a4541c9c5bf72774db2689f75d4e /ui/qt/proto_tree.cpp
parent7f424b5a550f0a5f6d370b46b8ffbb327754fa3d (diff)
Qt: Implement "Apply as Column" for packet context
Implement the same functionality for "Apply as Column" as it exists in the GTK version of Wireshark. Especially for the context menu in the packet view panel. Change-Id: Id25b7797616ff3b3acf7aa920395516c8a4e9bf9 Reviewed-on: https://code.wireshark.org/review/7604 Reviewed-by: Roland Knall <rknall@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r--ui/qt/proto_tree.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp
index c12b2dc48d..ac2dac3a52 100644
--- a/ui/qt/proto_tree.cpp
+++ b/ui/qt/proto_tree.cpp
@@ -167,8 +167,13 @@ ProtoTree::ProtoTree(QWidget *parent) :
ctx_menu_.addAction(window()->findChild<QAction *>("actionViewExpandAll"));
ctx_menu_.addAction(window()->findChild<QAction *>("actionViewCollapseAll"));
ctx_menu_.addSeparator();
-// " <menuitem name='CreateAColumn' action='/Create a Column'/>\n"
+
+ action = window()->findChild<QAction *>("actionAnalyzeCreateAColumn");
+ ctx_menu_.addAction(action);
+ ctx_menu_.addSeparator();
+
action = window()->findChild<QAction *>("actionApply_as_Filter");
+
submenu = new QMenu();
action->setMenu(submenu);
ctx_menu_.addAction(action);