diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-23 10:54:29 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-23 11:21:02 +0000 |
commit | 859663ae2971f3b6b99239dda24782eda2d88347 (patch) | |
tree | 32bdf1d21e328f0853e762d26bf238679fdb4b9c /src/imports | |
parent | 08af96d776e9df4b9db3d5c8ed6b895dee31dad9 (diff) |
QQuickMaterialProgressStrip: reset the transformation matrix
The trasformation matrix for the indeterminate animation has to
be reset when switching back to non-indeterminate mode, or else
the indicator is translated to a wrong position.
Change-Id: I8489a504f0b9626dbd0172ba0fba842f4528d027
Task-number: QTBUG-51312
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/controls/material/qquickmaterialprogressstrip.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/controls/material/qquickmaterialprogressstrip.cpp b/src/imports/controls/material/qquickmaterialprogressstrip.cpp index 3ac09e24..1d888183 100644 --- a/src/imports/controls/material/qquickmaterialprogressstrip.cpp +++ b/src/imports/controls/material/qquickmaterialprogressstrip.cpp @@ -225,6 +225,7 @@ QSGNode *QQuickMaterialProgressStrip::updatePaintNode(QSGNode *oldNode, UpdatePa transformNode->appendChildNode(rectNode); } Q_ASSERT(transformNode->type() == QSGNode::TransformNodeType); + static_cast<QSGTransformNode *>(transformNode)->setMatrix(QMatrix4x4()); QSGRectangleNode *rectNode = static_cast<QSGRectangleNode *>(transformNode->firstChild()); Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType); |