Added toggle switch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user