diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-02 10:42:47 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-03 18:43:22 +0200 |
commit | f51b690e91bb2d7c8a03c5cef42abca37d97f8bb (patch) | |
tree | 9ad2f14df7d280ec4b0ade4ba8fb34a24f42e0b1 /tests/auto/corelib/animation | |
parent | 21de5aa1ac0255ca0aeaf89db09c2f2beaf33694 (diff) |
Remove timeStep parameter from QAnimationDrive::advanceAnimation
Addresses ### Qt 6 comment, and documentation pointing out that the parameter
value is ignored. It wasn't ignored in the code, but that's the kind of change
we can make now.
With this change, QUnifiedTimer::updateAnimationTimers is only called with -1
as the currentTick input parameter, also from Qt Declarative. Make it default,
so that leaf modules can be fixed. Once that it done, the parameter can be
removed completely.
Change-Id: I80c57ff92f3b615b932dd73d711cf6397347efd8
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/corelib/animation')
-rw-r--r-- | tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp index 55ac71c8c7..e1377ab2a3 100644 --- a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp +++ b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp @@ -115,10 +115,10 @@ public: static const int interval = 1000/60; qint64 until = m_elapsed + ms; while (m_elapsed < until) { - advanceAnimation(m_elapsed); + advanceAnimation(); m_elapsed += interval; } - advanceAnimation(m_elapsed); + advanceAnimation(); // This is to make sure that animations that were started with DeleteWhenStopped // will actually delete themselves within the test function. // Normally, they won't be deleted until the main event loop is processed. |