diff options
author | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2023-04-04 14:19:42 +0200 |
---|---|---|
committer | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2023-04-11 17:27:41 +0200 |
commit | 79d61b3ab7fcc75454b81d5e78d4f404a9c4bd6c (patch) | |
tree | 353e761cb34b01b29a6cb9cf99f9838474e56cd3 /src/quick/items/qquickitem.cpp | |
parent | fa3b472c13d222f02bb2c821ab08eafaceb155ce (diff) |
Ignore tap events for table view when interactive is disabled
TableView uses QQuickTapHandler internally to handle tap events. This
handler accepts tap events considering pointerNavigationEnabled property
of table view. TableView accepts mouse events if either 'interactive'
or 'pointerNavigationEnabled' property is set as true, otherwise, it
has to pass mouse or touch events to the below item.
This patch introduces QQuickTableViewTapHandler inherited from
QQuickTapHandler that can explicitly check pointerNavigationEnabled
property of QQuickTableView during wantsEventPoint to either accept
or ignore tap events.
Fixes: QTBUG-108596
Pick-to: 6.4 6.5
Change-Id: I330ae319706b6dbadc3a7319f62d636708aab995
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quick/items/qquickitem.cpp')
0 files changed, 0 insertions, 0 deletions