aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/qquickmaterialbusyindicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/qquickmaterialbusyindicator.cpp')
-rw-r--r--src/imports/controls/material/qquickmaterialbusyindicator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/controls/material/qquickmaterialbusyindicator.cpp b/src/imports/controls/material/qquickmaterialbusyindicator.cpp
index bd15390b..0a4191be 100644
--- a/src/imports/controls/material/qquickmaterialbusyindicator.cpp
+++ b/src/imports/controls/material/qquickmaterialbusyindicator.cpp
@@ -36,6 +36,7 @@
#include "qquickmaterialbusyindicator_p.h"
+#include <QtCore/qmath.h>
#include <QtCore/qeasingcurve.h>
#include <QtGui/qpainter.h>
#include <QtQuick/qsgimagenode.h>
@@ -124,7 +125,7 @@ void QQuickMaterialBusyIndicatorNode::updateCurrentTime(int time)
QPen pen;
QSGImageNode *textureNode = static_cast<QSGImageNode *>(firstChild());
pen.setColor(m_color);
- pen.setWidth(4 * m_devicePixelRatio);
+ pen.setWidth(qCeil(size / 12) * m_devicePixelRatio);
painter.setPen(pen);
const qreal percentageComplete = time / qreal(RotationAnimationDuration);