Fixed slider painting, part III
This commit is contained in:
@@ -52,7 +52,8 @@ BCToggleSwitch::BCToggleSwitch(QWidget *parent)
|
||||
m_animation->setEasingCurve(QEasingCurve::OutQuad);
|
||||
|
||||
// Signal verknüpfen
|
||||
connect(this, &QAbstractButton::toggled, this, [this](bool checked){
|
||||
connect(this, &QAbstractButton::toggled, this, [this](bool checked)
|
||||
{
|
||||
m_animation->stop();
|
||||
m_animation->setStartValue(m_position);
|
||||
m_animation->setEndValue(checked ? 1.0f : 0.0f);
|
||||
|
||||
Reference in New Issue
Block a user