diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-29 08:52:45 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-29 07:04:26 +0000 |
commit | 57be0d0287a80e4c4f0f7de4d54704c52ad4054d (patch) | |
tree | 8b6acf35bce0444ee4a1104add202b5bbe1ce797 /src/imports/controls/material/qquickmaterialprogressring.cpp | |
parent | 9caa740195abf5fa137e48438413045bfe36610c (diff) |
Remove unnecessary TODO comments
It's OK to have approximations of color values and easing curves.
Change-Id: Id0cb5cd80e5086ba1a8b35ac2f6c569b3c4002d0
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/material/qquickmaterialprogressring.cpp')
-rw-r--r-- | src/imports/controls/material/qquickmaterialprogressring.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/imports/controls/material/qquickmaterialprogressring.cpp b/src/imports/controls/material/qquickmaterialprogressring.cpp index b5bbbd88..cbed6886 100644 --- a/src/imports/controls/material/qquickmaterialprogressring.cpp +++ b/src/imports/controls/material/qquickmaterialprogressring.cpp @@ -225,14 +225,12 @@ void QQuickMaterialRingAnimatorJob::updateCurrentTime(int time) // The start angle is only affected by the rotation animation for the "grow" phase. startAngle = lastStartAngle; - // TODO: use the correct curve here. QEasingCurve's bezier API doesn't support SVG path data. QEasingCurve angleCurve(QEasingCurve::OutQuad); const qreal percentage = angleCurve.valueForProgress(spanPercentageComplete); endAngle = lastStartAngle + minSweepSpan + percentage * (maxSweepSpan - minSweepSpan); lastEndAngle = endAngle; } else { // Both the start angle *and* the span are affected by the "shrink" phase. - // TODO: use the correct curve here. QEasingCurve's bezier API doesn't support SVG path data. QEasingCurve angleCurve(QEasingCurve::InQuad); const qreal percentage = angleCurve.valueForProgress(spanPercentageComplete); startAngle = lastEndAngle - maxSweepSpan + percentage * (maxSweepSpan - minSweepSpan); |