diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2010-10-25 20:28:31 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2010-11-03 16:55:28 (GMT) |
commit | 4c400ec8e397b4da9898f96c50a702eaa362293d (patch) | |
tree | ffd15d00b6173dce3637e7d8d246fa7382a79b21 /src | |
parent | 5a20a7b87220dd33792b5c25ea809a0e5f93a93b (diff) | |
download | Qt-4c400ec8e397b4da9898f96c50a702eaa362293d.zip Qt-4c400ec8e397b4da9898f96c50a702eaa362293d.tar.gz Qt-4c400ec8e397b4da9898f96c50a702eaa362293d.tar.bz2 |
PinchGesture: lastRotationAngle should start at 0.
Reviewed-by: Zeno Albisser
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qstandardgestures.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qstandardgestures.cpp b/src/gui/kernel/qstandardgestures.cpp index 1821c3d..7336c84 100644 --- a/src/gui/kernel/qstandardgestures.cpp +++ b/src/gui/kernel/qstandardgestures.cpp @@ -224,7 +224,7 @@ QGestureRecognizer::Result QPinchGestureRecognizer::recognize(QGesture *state, startAngle -= 360; const qreal rotationAngle = startAngle - angle; if (d->isNewSequence) - d->lastRotationAngle = rotationAngle; + d->lastRotationAngle = 0.0; else d->lastRotationAngle = d->rotationAngle; d->rotationAngle = rotationAngle; |