summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices/integrity-armv8-SA8155P/qmake.conf
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-10-21 12:03:57 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-10-22 09:43:53 +0200
commit71aaf831d175a164b508ce169131a794d55d6fb0 (patch)
treec7c3edd7b90c7b9e66e28dedafdc5f6c2f8bf9b4 /mkspecs/devices/integrity-armv8-SA8155P/qmake.conf
parent7d133a5613b7d9bae544fa56d26577c0c9d50ff4 (diff)
QAbstractItemView: auto-scroll with selection rectangle
Some item views, such as QListView in icon mode, implement a selection rectangle with which the user can "lasso" items. So far, dragging that rectangle did not trigger auto scroll, so unless an item near the edge was selected, the user had to stop the lassoing and scroll manually to reach more items. Since QAbtractItemView implements auto scrolling for drag'n'drop, we can use that mechanism also when the selection rectangle is dragged. This requires some modifications: We need to make sure that scrolling the view during a drag-selection generates mouse move events so that the selection is extended and the rectangle is updated in subclasses. And we need to stop using QCursor::pos to get the position of the mouse pointer, as this makes the auto-scrolling untestable. Instead, record the mouse position last seen during a mouseMove or dragMoveEvent in content-coordinates (identical to pressedPosition). As a drive-by, fix some coding-style issues in nearby code. Done-with: Zhang Hao <zhanghao@uniontech.com> Fixes: QTBUG-96124 Change-Id: I426f786e5842ae9f9fb04e9d34dc6d3379a6207f Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'mkspecs/devices/integrity-armv8-SA8155P/qmake.conf')
0 files changed, 0 insertions, 0 deletions