Added toggle switch

This commit is contained in:
2026-01-15 21:26:10 +01:00
parent 291695bcb9
commit c6c058279a
2 changed files with 21 additions and 14 deletions

View File

@@ -3,6 +3,7 @@
#include <QAbstractButton>
// Vorwärtsdeklaration spart Include-Zeit
class QPropertyAnimation;
@@ -28,10 +29,10 @@ protected:
void enterEvent(QEnterEvent *event) override;
void leaveEvent(QEvent *event) override;
float m_position; // 0.0 = Aus, 1.0 = An
QPropertyAnimation *m_animation;
private:
float m_position; // 0.0 = Aus, 1.0 = An
QPropertyAnimation* m_animation;
};
#endif // BCTOGGLESWITCH_H