aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/uat_frame.ui
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2017-07-16 12:32:40 +0200
committerMichael Mann <mmann78@netscape.net>2017-07-16 14:47:01 +0000
commit4beb7430d4f935cdd31826809e53f8fb0365d2c0 (patch)
tree809b20cf6788c08268cb95adc5b7aea1b6197a9a /ui/qt/uat_frame.ui
parent96ac279d986898e655fc18a3950caa6f5f214fe7 (diff)
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 <mmann78@netscape.net> Reviewed-by: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/uat_frame.ui')
-rw-r--r--ui/qt/uat_frame.ui6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/uat_frame.ui b/ui/qt/uat_frame.ui
index b99bf4d..a9128e1 100644
--- a/ui/qt/uat_frame.ui
+++ b/ui/qt/uat_frame.ui
@@ -18,7 +18,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
- <widget class="UatTreeView" name="uatTreeView">
+ <widget class="TabnavTreeView" name="uatTreeView">
<column>
<property name="text">
<string notr="true">1</string>
@@ -138,9 +138,9 @@
<header>widgets/elided_label.h</header>
</customwidget>
<customwidget>
- <class>UatTreeView</class>
+ <class>TabnavTreeView</class>
<extends>QTreeView</extends>
- <header>uat_tree_view.h</header>
+ <header>widgets/tabnav_tree_view.h</header>
</customwidget>
</customwidgets>
<resources>