Simplify calculation of center point and scale for PinchRecongizer
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>
Mon, 25 Oct 2010 16:32:21 +0000 (18:32 +0200)
committerFrederik Gladhorn <frederik.gladhorn@nokia.com>
Mon, 25 Oct 2010 16:40:37 +0000 (18:40 +0200)
commitb5de32d7dbb6fc8c6c8e5c29d0155aa6a072a14d
tree633ec4fa7db7f4fedd323fe1e544da1b54407597
parent2344254329a6231dab9daf04fa99823c3c68be49
Simplify calculation of center point and scale for PinchRecongizer

Constructing a QLineF to get at the centerPoint is not precise and can be done simpler.
The scale factor can be assigned directly to d->scaleFactor instead of creating a temporary
scaleFactor variable.

Reviewed-by: Zeno Albisser
src/gui/kernel/qstandardgestures.cpp