aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/treeview
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2022-11-30 14:56:37 +0100
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2022-12-09 11:38:54 +0100
commit8333954f7e3cccf4994c4e9996efac71db497acb (patch)
tree0e5cf46d377c4ec24af51956a59795644833b627 /tests/manual/treeview
parent4a11f077f0f8cefc86d54fa71f92563747f17976 (diff)
QQQuickTreeView: double expand from TreeView, not TreeViewDelegate
We should ideally implement as much mouse logic as possible outside the delegate. This will make it easier to implement custom delegates, since you would then only have to care about the visuals, and not the mouse logic. Therefore, move the doubleTap-to-toggle-expanded logic out of TreeViewDelegate, and into TreeView, for all custom delegates to enjoy. Change-Id: I01f49252d35fed033f162d7bab47478abefe73d1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/manual/treeview')
-rw-r--r--tests/manual/treeview/sidebyside/data/treeview.qml4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/manual/treeview/sidebyside/data/treeview.qml b/tests/manual/treeview/sidebyside/data/treeview.qml
index 6c51b7c413..7d265c44e1 100644
--- a/tests/manual/treeview/sidebyside/data/treeview.qml
+++ b/tests/manual/treeview/sidebyside/data/treeview.qml
@@ -134,10 +134,6 @@ ApplicationWindow {
required property int hasChildren
required property int depth
- TapHandler {
- onTapped: treeView.toggleExpanded(row)
- }
-
Text {
id: indicator
visible: root.isTreeNode && root.hasChildren