diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-10-18 16:07:40 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2016-11-22 12:46:56 +0000 |
commit | 7aa312be3ce7ff8f7f4b8e484747565c2cae88a7 (patch) | |
tree | 06b02e02c7302e55051921acd633919a6002c1fe /src/quick/handlers/qquickpinchhandler.cpp | |
parent | 567811a52ecbd4de312750ba7d7855e560a1d7af (diff) |
PinchHandler: populate the translation property
It's intended to be total translation of the target item relative to
its declared position, independent of scale.
Change-Id: I2b8f1bd62ba34c0200ea88b3461a45e1dcf61166
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpinchhandler.cpp')
-rw-r--r-- | src/quick/handlers/qquickpinchhandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/handlers/qquickpinchhandler.cpp b/src/quick/handlers/qquickpinchhandler.cpp index 09e4f9f17c..c6294092e6 100644 --- a/src/quick/handlers/qquickpinchhandler.cpp +++ b/src/quick/handlers/qquickpinchhandler.cpp @@ -282,6 +282,7 @@ void QQuickPinchHandler::handlePointerEventImpl(QQuickPointerEvent *event) mat = mat * m_startMatrix; m_transform.setMatrix(mat); + m_translation = QPointF(mat.constData()[12], mat.constData()[13]); } emit updated(); |