aboutsummaryrefslogtreecommitdiffstats
path: root/src/controls/qquickcheckable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/qquickcheckable.cpp')
-rw-r--r--src/controls/qquickcheckable.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/controls/qquickcheckable.cpp b/src/controls/qquickcheckable.cpp
index faf26c92..0130308e 100644
--- a/src/controls/qquickcheckable.cpp
+++ b/src/controls/qquickcheckable.cpp
@@ -79,6 +79,7 @@ void QQuickCheckable::setChecked(bool checked)
Q_D(QQuickCheckable);
if (d->checked != checked) {
d->checked = checked;
+ setAccessibleProperty("checked", checked);
emit checkedChanged();
}
}
@@ -148,4 +149,10 @@ void QQuickCheckable::mouseReleaseEvent(QMouseEvent *event)
setChecked(d->exclusive || !d->checked);
}
+void QQuickCheckable::classBegin()
+{
+ QQuickAbstractButton::classBegin();
+ setAccessibleProperty("checkable", true);
+}
+
QT_END_NAMESPACE