Gui: Split stopAnimation() into onStop() and inherited stop()

This commit is contained in:
Rexbas
2023-10-22 14:23:14 +02:00
committed by wwmayer
parent b147e78cda
commit fdc07dba67
4 changed files with 17 additions and 35 deletions

View File

@@ -39,10 +39,8 @@ void NavigationAnimation::updateCurrentValue(const QVariant& value)
update(value);
}
void NavigationAnimation::stopAnimation()
{
QAbstractAnimation::stop();
}
void NavigationAnimation::onStop(bool finished)
{}
FixedTimeAnimation::FixedTimeAnimation(NavigationStyle* navigation, const SbRotation& orientation,
const SbVec3f& rotationCenter, const SbVec3f& translation,
@@ -139,9 +137,8 @@ void SpinningAnimation::update(const QVariant& value)
prevAngle = value.toFloat();
}
void SpinningAnimation::stopAnimation()
void SpinningAnimation::onStop(bool finished)
{
NavigationAnimation::stopAnimation();
if (navigation->getViewingMode() != NavigationStyle::SPINNING) {
return;
}