aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickbutton.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-09-22 08:44:34 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-09-22 08:55:29 +0200
commitab91c57135f7a86437a5a4341cd32df1d4682480 (patch)
tree713612fe2c27ff43ab4a3d5ed3b363c6141d5fbf /src/quicktemplates2/qquickbutton.cpp
parentc5a44092c8b73c540862c4a160c31487a8518992 (diff)
parent7193318330bc518255fb7ed008c144578f49b4bd (diff)
Merge remote-tracking branch 'origin/5.7' into 5.8
Diffstat (limited to 'src/quicktemplates2/qquickbutton.cpp')
-rw-r--r--src/quicktemplates2/qquickbutton.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickbutton.cpp b/src/quicktemplates2/qquickbutton.cpp
index 19310713..591c4316 100644
--- a/src/quicktemplates2/qquickbutton.cpp
+++ b/src/quicktemplates2/qquickbutton.cpp
@@ -110,6 +110,17 @@ QQuickButton::QQuickButton(QQuickButtonPrivate &dd, 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()
@@ -120,8 +131,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.
*/