28 Q_PROPERTY(
bool tristate READ isTristate WRITE setTristate NOTIFY tristateChanged FINAL)
29 Q_PROPERTY(Qt::CheckState checkState READ checkState WRITE setCheckState NOTIFY checkStateChanged FINAL)
31 Q_PROPERTY(QJSValue nextCheckState READ getNextCheckState WRITE setNextCheckState NOTIFY
32 nextCheckStateChanged FINAL REVISION(2, 4))
33 QML_NAMED_ELEMENT(CheckBox)
34 QML_ADDED_IN_VERSION(2, 0)
37 explicit QQuickCheckBox(QQuickItem *parent =
nullptr);
39 bool isTristate()
const;
40 void setTristate(
bool tristate);
42 Qt::CheckState checkState()
const;
43 void setCheckState(Qt::CheckState state);
44 QJSValue getNextCheckState()
const;
45 void setNextCheckState(
const QJSValue &callback);
48 void tristateChanged();
49 void checkStateChanged();
51 Q_REVISION(2, 4)
void nextCheckStateChanged();
54 QFont defaultFont()
const override;
56 void buttonChange(ButtonChange change) override;
57 void nextCheckState() override;
60 Q_DISABLE_COPY(QQuickCheckBox)
61 Q_DECLARE_PRIVATE(QQuickCheckBox)