mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-05 08:45:25 +08:00
6.5.3 clean
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include <QSignalSpy>
|
||||
|
||||
#include <QtCore/qparallelanimationgroup.h>
|
||||
#include <QtCore/qscopeguard.h>
|
||||
|
||||
Q_DECLARE_METATYPE(QAbstractAnimation::State)
|
||||
|
||||
@ -928,6 +929,7 @@ void tst_QParallelAnimationGroup::autoAdd()
|
||||
|
||||
test = static_cast<TestAnimation2*>(group.animationAt(0));
|
||||
test->setParent(0); // remove the last one (with duration = 250)
|
||||
const auto deleteParentlessObject = qScopeGuard([test] { delete test; });
|
||||
QCOMPARE(test->group(), static_cast<QAnimationGroup*>(0));
|
||||
QCOMPARE(group.duration(), 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user