From 4beb7430d4f935cdd31826809e53f8fb0365d2c0 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 16 Jul 2017 12:32:40 +0200 Subject: Qt: refactor UatTreeView into something reusable UatTreeView had two functions: 1. Saner navigation functionality when pressing tab. 2. Start editing when the currently selected item changes. Since this tab navigation functionality is desired in more places, extract this functionality. Add more documentation while at it and use an alternative, declarative style to connect signals. Move the second functionality to the caller since not all views need it. Change-Id: Ibe886f2c2763dbe024614203a44b72173fbbce06 Reviewed-on: https://code.wireshark.org/review/22639 Petri-Dish: Michael Mann Reviewed-by: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- ui/qt/uat_frame.ui | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/qt/uat_frame.ui') diff --git a/ui/qt/uat_frame.ui b/ui/qt/uat_frame.ui index b99bf4ddd8..a9128e1a83 100644 --- a/ui/qt/uat_frame.ui +++ b/ui/qt/uat_frame.ui @@ -18,7 +18,7 @@ - + 1 @@ -138,9 +138,9 @@
widgets/elided_label.h
- UatTreeView + TabnavTreeView QTreeView -
uat_tree_view.h
+
widgets/tabnav_tree_view.h
-- cgit v1.2.3