aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickabstractbutton_p.h
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-02-29 15:56:03 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-13 09:07:38 +0000
commit7a8f055c6ee274292f2585f59ff6bac4383d6b01 (patch)
tree4c7b3537d40c8dd50284e21622d36d28db67d501 /src/templates/qquickabstractbutton_p.h
parent4ae3a828ad972e24802ea711fc12e12883cc28be (diff)
Expose checkable where necessary, instead of in QQuickAbstractButton
QQuickCheckBox, QQuickRadioButton and QQuickSwitch are inherently checkable, so having this property available to QML doesn't make sense. QQuickButton and QQuickMenuItem are the two classes that need to expose the property. Change-Id: Ic421c195295c4bef0fc934c98fa9e781d98c9b67 Task-number: QTBUG-51554 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickabstractbutton_p.h')
-rw-r--r--src/templates/qquickabstractbutton_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/templates/qquickabstractbutton_p.h b/src/templates/qquickabstractbutton_p.h
index 3877a96d..71aed622 100644
--- a/src/templates/qquickabstractbutton_p.h
+++ b/src/templates/qquickabstractbutton_p.h
@@ -60,7 +60,6 @@ class Q_QUICKTEMPLATES_EXPORT QQuickAbstractButton : public QQuickControl
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL)
Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY checkedChanged FINAL)
- Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable NOTIFY checkableChanged FINAL)
Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL)
Q_PROPERTY(bool autoExclusive READ autoExclusive WRITE setAutoExclusive NOTIFY autoExclusiveChanged FINAL)
Q_PROPERTY(bool autoRepeat READ autoRepeat WRITE setAutoRepeat NOTIFY autoRepeatChanged FINAL)
@@ -107,7 +106,6 @@ Q_SIGNALS:
void textChanged();
void pressedChanged();
void checkedChanged();
- void checkableChanged();
void highlightedChanged();
void autoExclusiveChanged();
void autoRepeatChanged();
@@ -129,6 +127,8 @@ protected:
virtual void checkStateSet();
virtual void nextCheckState();
+ virtual void checkableChange();
+
#ifndef QT_NO_ACCESSIBILITY
void accessibilityActiveChanged(bool active) override;
QAccessible::Role accessibleRole() const override;