qt5base-lts/tests/auto/widgets/graphicsview
Friedemann Kleint ed3ed0b9db 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
c48f4bde00 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>
2018-02-20 13:54:34 +00:00
..
qgraphicsanchorlayout Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsanchorlayout1 Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicseffectsource Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsgridlayout Fix layout tests for GCC 5.2.x/5.3.x 2017-03-30 06:58:07 +00:00
qgraphicsitem Fix touch point positions of non-transformable QGraphicsItems 2018-02-20 13:54:34 +00:00
qgraphicsitemanimation tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayout tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayoutitem tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslinearlayout Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qgraphicsobject Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspixmapitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspolygonitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsproxywidget qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qgraphicsscene Fix touch point positions of non-transformable QGraphicsItems 2018-02-20 13:54:34 +00:00
qgraphicssceneindex Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qgraphicstransform Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsview Blacklist tst_QGraphicsView::update2 on openSUSE 42.3 2018-02-14 15:48:30 +00:00
qgraphicswidget qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
graphicsview.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00