diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-12 16:26:38 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-20 13:54:34 +0000 |
| commit | ed3ed0b9db97a8fab0c03add23228b6b0a96f171 (patch) | |
| tree | 130ebf9b291fa140dc39c331c0717cd55aab69b1 /src/concurrent/qtconcurrentmedian.h | |
| parent | 76617fdb56a5498c01ad75bc461687ded7e8f8d7 (diff) | |
Fix touch point positions of non-transformable QGraphicsItems
TouchEvent::TouchPoint::pos was not updated in
QGraphicsScenePrivate::updateTouchPointsForItem().
To prevent the transformation being calculated repeatedly for each touch
point member, extract a function genericMapFromSceneTransform()
from genericMapFromScene() returning the transformation and use
that whereever multiple points are transformed.
Add a test, extracting helper functionality from
tst_QGraphicsItem::touchEventPropagation().
In addition, fold tst_QGraphicsScene::checkTouchPointsEllipseDiameters() from
c48f4bde0044bd5b23af231f3639d0779ecbdb03 into this test, so that
it is testing all transformations.
Task-number: QTBUG-66192
Change-Id: If71886d2c14c4e216f7781ea2f22f1adc444e6cf
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/concurrent/qtconcurrentmedian.h')
0 files changed, 0 insertions, 0 deletions
