aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2022-05-23 13:23:03 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2022-06-03 21:23:22 +0200
commitf4a00667b1a0a7444347e09deae4861190dd3e36 (patch)
treeef16d72b6d2b62bec2edfb4671424ffda1db614c /src
parenta0cdaa1d78d180b9e146fad935ba7b49dbf532f0 (diff)
QQuickTableView: don't scroll when tapping on a cell
There is no reason why tableview should scroll a cell to become completely visible when the user taps on it. This is convenient when navigating with keys, but not with mouse. If needed, the app can listen to currentIndex changes, and call postitionViewAtCell() explicitly. Change-Id: I5b34c87e2befe718d0f37b5993ecf30efd6a7f20 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquicktableview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/items/qquicktableview.cpp b/src/quick/items/qquicktableview.cpp
index 9026cb13d2..f2c97b8e08 100644
--- a/src/quick/items/qquicktableview.cpp
+++ b/src/quick/items/qquicktableview.cpp
@@ -4109,7 +4109,6 @@ void QQuickTableViewPrivate::setCurrentIndexFromTap(const QPointF &pos)
if (!cellIsValid(cell))
return;
- q->positionViewAtCell(cell, QQuickTableView::Contain);
setCurrentIndex(cell);
}