aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickabstractbutton.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/qquickabstractbutton.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/qquickabstractbutton.cpp')
-rw-r--r--src/quicktemplates2/qquickabstractbutton.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/quicktemplates2/qquickabstractbutton.cpp b/src/quicktemplates2/qquickabstractbutton.cpp
index 8ae5ca6d..5ab6729f 100644
--- a/src/quicktemplates2/qquickabstractbutton.cpp
+++ b/src/quicktemplates2/qquickabstractbutton.cpp
@@ -427,14 +427,6 @@ void QQuickAbstractButton::setAutoExclusive(bool exclusive)
emit autoExclusiveChanged();
}
-/*!
- \qmlproperty bool QtQuick.Controls::AbstractButton::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.
-*/
bool QQuickAbstractButton::autoRepeat() const
{
Q_D(const QQuickAbstractButton);
@@ -449,7 +441,7 @@ void QQuickAbstractButton::setAutoRepeat(bool repeat)
d->stopPressRepeat();
d->autoRepeat = repeat;
- emit autoRepeatChanged();
+ autoRepeatChange();
}
/*!
@@ -644,6 +636,10 @@ void QQuickAbstractButton::checkableChange()
{
}
+void QQuickAbstractButton::autoRepeatChange()
+{
+}
+
#ifndef QT_NO_ACCESSIBILITY
void QQuickAbstractButton::accessibilityActiveChanged(bool active)
{