summaryrefslogtreecommitdiffstats
path: root/src/animation
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2020-11-20 17:26:26 +0000
committerMike Krus <mike.krus@kdab.com>2021-01-05 16:03:03 +0000
commit090ea5502eac39565e33b3882f2173dd5eae473d (patch)
treee79db00cd7cc50e83bbce5adc06ddda59aa30224 /src/animation
parent173be1a93699c54d9680d809ca5a56ce0ccccd9a (diff)
Enable compiling non-QML API against Qt 5.15
Built with QtQuick disabled. - C++17 required - minor issues with QList vs QVector - QMutexLocker templated vs not - moc forward declaration handling Change-Id: I5540625e74e2c009e528f56203e4b88be8d54599 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/backend/animationclip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/animation/backend/animationclip.cpp b/src/animation/backend/animationclip.cpp
index 699d4dc50..93a70eadd 100644
--- a/src/animation/backend/animationclip.cpp
+++ b/src/animation/backend/animationclip.cpp
@@ -354,7 +354,7 @@ void AnimationClip::clearData()
float AnimationClip::findDuration()
{
// Iterate over the contained fcurves and find the longest one
- double tMax = 0.0;
+ float tMax = 0.f;
for (const Channel &channel : qAsConst(m_channels)) {
for (const ChannelComponent &channelComponent : qAsConst(channel.channelComponents)) {
const float t = channelComponent.fcurve.endTime();