BUGI8ZZBH, Fix checkbox animation easing curve

This commit is contained in:
xibowen 2024-04-19 15:00:54 +08:00
parent 026f934cd2
commit 1ae115a7ef
1 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ bool ConfigCheckBoxAnimator::bindWidget(QWidget *w)
m_onScale->setStartValue(0.0);
m_onScale->setEndValue(1.0);
m_onScale->setDuration(260);
m_onScale->setEasingCurve(QEasingCurve::InOutSine);
m_onScale->setEasingCurve(QEasingCurve::OutCubic);
addAnimation(m_onScale);
connect(m_onScale, &QVariantAnimation::valueChanged, w, [=](const QVariant &value) {
w->update();
@ -80,7 +80,7 @@ bool ConfigCheckBoxAnimator::bindWidget(QWidget *w)
m_onOpacity->setStartValue(0.0);
m_onOpacity->setEndValue(1.0);
m_onOpacity->setDuration(120);
m_onOpacity->setEasingCurve(QEasingCurve::InOutSine);
m_onOpacity->setEasingCurve(QEasingCurve::OutCubic);
addAnimation(m_onOpacity);
connect(m_onOpacity, &QVariantAnimation::valueChanged, w, [=](const QVariant &value) {
w->update();
@ -93,7 +93,7 @@ bool ConfigCheckBoxAnimator::bindWidget(QWidget *w)
m_onBase->setStartValue(0.0);
m_onBase->setEndValue(1.0);
m_onBase->setDuration(180);
m_onBase->setEasingCurve(QEasingCurve::InOutSine);
m_onBase->setEasingCurve(QEasingCurve::OutCubic);
addAnimation(m_onBase);
connect(m_onBase, &QVariantAnimation::valueChanged, w, [=](const QVariant &value) {
w->update();