diff options
authorMitch Curtis <mitch.curtis@qt.io>2019-09-09 11:02:59 +0200
committerMitch Curtis <mitch.curtis@qt.io>2019-09-24 06:16:00 +0200
commit2275541b52a8879cd8c7bf281b385738e5a664fe (patch)
parent6815f353e5a73c0dcf39fbfc91c6a2c1b0784324 (diff)
Doc: clarify autoRepeat/pressAndHold() behavior
Change-Id: Ia0dea6060be7ffd1c4a16348f166e7cde7ef2df2 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickabstractbutton.cpp b/src/quicktemplates2/qquickabstractbutton.cpp
index 983f2651..2099f2db 100644
--- a/src/quicktemplates2/qquickabstractbutton.cpp
+++ b/src/quicktemplates2/qquickabstractbutton.cpp
@@ -105,6 +105,7 @@ QT_BEGIN_NAMESPACE
\qmlsignal QtQuick.Controls::AbstractButton::pressAndHold()
This signal is emitted when the button is interactively pressed and held down by the user via touch or mouse.
+ It is not emitted when \l autoRepeat is enabled.
@@ -658,6 +659,9 @@ void QQuickAbstractButton::setAutoExclusive(bool exclusive)
This property holds whether the button repeats \l pressed(), \l released()
and \l clicked() signals while the button is pressed and held down.
+ If this property is set to \c true, the \l pressAndHold() signal will not
+ be emitted.
The default value is \c false.
The initial delay and the repetition interval are defined in milliseconds