15 Q_PROPERTY(
bool autoRepeat READ autoRepeat
16 WRITE setAutoRepeat NOTIFY autoRepeatChanged FINAL )
18 Q_PROPERTY(
int autoRepeatDelay READ autoRepeatDelay
19 WRITE setAutoRepeatDelay NOTIFY autoRepeatDelayChanged FINAL )
21 Q_PROPERTY(
int autoRepeatInterval READ autoRepeatInterval
22 WRITE setAutoRepeatInterval NOTIFY autoRepeatIntervalChanged FINAL )
24 Q_PROPERTY(
bool exclusive READ exclusive
25 WRITE setExclusive NOTIFY exclusiveChanged FINAL )
27 Q_PROPERTY(
bool pressed READ isPressed
28 WRITE setPressed NOTIFY pressedChanged FINAL )
30 Q_PROPERTY(
bool checked READ isChecked
31 WRITE setChecked NOTIFY checkedChanged USER
true FINAL )
36 QSK_STATES( Checked, Pressed )
41 virtual bool isCheckable()
const;
42 bool isChecked()
const;
44 void setPressed(
bool on );
45 bool isPressed()
const;
47 void setAutoRepeat(
bool );
48 bool autoRepeat()
const;
50 void setAutoRepeatDelay(
int ms );
51 int autoRepeatDelay()
const;
53 void setAutoRepeatInterval(
int ms );
54 int autoRepeatInterval()
const;
56 void setExclusive(
bool );
57 bool exclusive()
const;
62 void setChecked(
bool );
71 void pressedChanged(
bool );
72 void checkedChanged(
bool );
74 void autoRepeatChanged(
bool );
75 void autoRepeatDelayChanged();
76 void autoRepeatIntervalChanged();
78 void exclusiveChanged(
bool );
81 bool event( QEvent* )
override;
83 void keyPressEvent( QKeyEvent* )
override;
84 void keyReleaseEvent( QKeyEvent* )
override;
86 void mouseMoveEvent( QMouseEvent* )
override;
87 void mousePressEvent( QMouseEvent* )
override;
88 void mouseReleaseEvent( QMouseEvent* )
override;
91 void focusInEvent( QFocusEvent* )
override;
92 void focusOutEvent( QFocusEvent* )
override;
94 void timerEvent( QTimerEvent* )
override;
96 virtual void setCheckedState(
bool on );
102 std::unique_ptr< PrivateData > m_data;