Fixed slider painting, part III

This commit is contained in:
2026-03-29 23:30:42 +02:00
parent 0389f98ba6
commit 43508cd698
10 changed files with 573 additions and 243 deletions

View File

@@ -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);