forked from openkylin/qt5-ukui-platformtheme
BUGI8ZZBH, Fix checkbox animation easing curve
This commit is contained in:
parent
026f934cd2
commit
1ae115a7ef
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue