aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-09-28 21:36:14 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-10-02 15:56:37 +0200
commitcb173de493b3b70bad88e138bf1fe2c1ef7990d2 (patch)
treed9503151a3635841a62e3202733d33da2ec49adf /tests/auto
parentb2e1183cb7f4f552bb4409172f82327111f754bb (diff)
PathView: stop using QQWindowPriv::cloneMouseEvent; refactor filtering
There's no need to heap-allocate a short-term mouse event; and localizing one is easy enough via QMutableEventPoint::setPosition. The sendMouseEvent() function (and its name) didn't make as much sense as handling the filtering completely in the childMouseEventFilter() function. Checking and changing the grabber is also now possible via accessors in the event itself, so now we have one fewer use of QQuickItem::grabMouse() and QQuickWindow::mouseGrabberItem(). Change-Id: I84f9f26e349a8d1aabacdbdbb264949d1103e91d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions