diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2015-03-23 12:04:36 +0100 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2015-04-13 15:58:57 +0000 |
commit | 9ea521532ee7fdf7c8962817592bb3d64723deb6 (patch) | |
tree | 1aca0234f1b961005ad3cf2c8945b0928c92f79a /ui/qt/proto_tree.cpp | |
parent | 62a70e8a0b9608647c6f43c664dda48408e16f5e (diff) |
Qt: Add option to copy all visible item or selected tree items in Packet Details pane
The idea is allow to copy data from GUI by user,
what is currently case only for tshark.
The first option copy every item from Packet Details that are expanded (visibled).
The second option do the same but start on currently selected item/tree.
(let think about protocols like BT SDP where there is a lot of recursive subtrees)
Change-Id: I19c925d21293ceb8af2167c7d2c1b1b36507124e
Reviewed-on: https://code.wireshark.org/review/8047
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 94d84399be..ed07e0e36b 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -222,6 +222,8 @@ ProtoTree::ProtoTree(QWidget *parent) : submenu = new QMenu(); action->setMenu(submenu); ctx_menu_.addAction(action); + submenu->addAction(window()->findChild<QAction *>("actionCopyAllVisibleItems")); + submenu->addAction(window()->findChild<QAction *>("actionCopyAllVisibleSelectedTreeItems")); submenu->addAction(window()->findChild<QAction *>("actionEditCopyDescription")); submenu->addAction(window()->findChild<QAction *>("actionEditCopyFieldName")); submenu->addAction(window()->findChild<QAction *>("actionEditCopyValue")); |