diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-11-20 17:26:26 +0000 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2021-01-05 16:03:03 +0000 |
commit | 090ea5502eac39565e33b3882f2173dd5eae473d (patch) | |
tree | e79db00cd7cc50e83bbce5adc06ddda59aa30224 /src/animation | |
parent | 173be1a93699c54d9680d809ca5a56ce0ccccd9a (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.cpp | 2 |
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(); |