aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickcheckbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/qquickcheckbox.cpp')
-rw-r--r--src/templates/qquickcheckbox.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/templates/qquickcheckbox.cpp b/src/templates/qquickcheckbox.cpp
index 84f7076e..1ced357a 100644
--- a/src/templates/qquickcheckbox.cpp
+++ b/src/templates/qquickcheckbox.cpp
@@ -40,7 +40,7 @@ QT_BEGIN_NAMESPACE
/*!
\qmltype CheckBox
- \inherits Checkable
+ \inherits AbstractButton
\instantiates QQuickCheckBox
\inqmlmodule Qt.labs.controls
\ingroup buttons
@@ -81,8 +81,9 @@ QT_BEGIN_NAMESPACE
*/
QQuickCheckBox::QQuickCheckBox(QQuickItem *parent) :
- QQuickCheckable(parent)
+ QQuickAbstractButton(parent)
{
+ setCheckable(true);
setAccessibleRole(0x0000002C); //QAccessible::CheckBox
}