From 859663ae2971f3b6b99239dda24782eda2d88347 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 23 Feb 2016 10:54:29 +0100 Subject: 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 --- src/imports/controls/material/qquickmaterialprogressstrip.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/imports/controls/material/qquickmaterialprogressstrip.cpp') 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(transformNode)->setMatrix(QMatrix4x4()); QSGRectangleNode *rectNode = static_cast(transformNode->firstChild()); Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType); -- cgit v1.2.3