aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickbutton.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-03-02 10:57:13 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-04-23 13:23:50 +0000
commitdfc9a12fc070dc36c67960dfc56d47c6656316ec (patch)
tree5a22a1927049a38f164a533546fbc8edd6bec854 /src/quicktemplates2/qquickbutton.cpp
parent5c91ac2aa6509b8c7508cfddcee2b8c6e20d7429 (diff)
Move autoRepeat out of QQuickAbstractButton
Subclasses like QQuickCheckBox don't need this. Change-Id: I885442b3286b0a497ba742d4dc7df0e89f8b02e8 Task-number: QTBUG-51554 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickbutton.cpp')
-rw-r--r--src/quicktemplates2/qquickbutton.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickbutton.cpp b/src/quicktemplates2/qquickbutton.cpp
index f34a5295..5f702818 100644
--- a/src/quicktemplates2/qquickbutton.cpp
+++ b/src/quicktemplates2/qquickbutton.cpp
@@ -105,6 +105,20 @@ void QQuickButton::checkableChange()
emit checkableChanged();
}
+/*!
+ \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.
+
+ The default value is \c false.
+*/
+
+void QQuickButton::autoRepeatChange()
+{
+ emit autoRepeatChanged();
+}
+
QFont QQuickButton::defaultFont() const
{
return QQuickControlPrivate::themeFont(QPlatformTheme::PushButtonFont);