diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-09-19 12:06:57 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2016-09-19 14:01:09 +0000 |
commit | 0365837e6658829b287a5196d3e0ebb1389a8c38 (patch) | |
tree | 01444f9de1b6d0c60bf462573d421cfdce879b98 /src/quicktemplates2/qquickbutton.cpp | |
parent | 3c6ea8948b67d758dc777b044df127d5514ecc08 (diff) |
Button: fix autoRepeat and checkable documentation review findings
Change-Id: Ic8c90c284863077681ee1d143a366138cd550825
Task-number: QTBUG-55904
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickbutton.cpp')
-rw-r--r-- | src/quicktemplates2/qquickbutton.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickbutton.cpp b/src/quicktemplates2/qquickbutton.cpp index a51e2210..901f730d 100644 --- a/src/quicktemplates2/qquickbutton.cpp +++ b/src/quicktemplates2/qquickbutton.cpp @@ -116,6 +116,17 @@ QQuickButton::QQuickButton(QQuickItem *parent) : \qmlproperty bool QtQuick.Controls::Button::checkable This property holds whether the button is checkable. + + A checkable button toggles between checked (on) and unchecked (off) when + the user clicks on it or presses the space bar while the button has active + focus. + + Setting \l {AbstractButton::}{checked} to \c true forces this property to + \c true. + + The default value is \c false. + + \sa CheckBox, Switch */ void QQuickButton::checkableChange() @@ -126,8 +137,10 @@ void QQuickButton::checkableChange() /*! \qmlproperty bool QtQuick.Controls::Button::autoRepeat - This property holds whether the button repeats pressed(), released() - and clicked() signals while the button is pressed and held down. + This property holds whether the button repeats + \l {AbstractButton::}{pressed()}, \l {AbstractButton::}{released()} + and \l {AbstractButton::}{clicked()} signals while the button is pressed + and held down. The default value is \c false. */ |