aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickabstractbutton.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-12-14 20:00:46 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-12-15 10:04:26 +0000
commit6b89293b99e763589181fd1f75470712f52cee3c (patch)
tree028706ec2c8e28da6187c37539f6607887cf51a0 /src/quicktemplates2/qquickabstractbutton.cpp
parenta03f18e026bb564237702cab477589b6916a0102 (diff)
Control: defer the execution of the content item
Tumbler is excluded because test_customContentItemAtConstruction() starts failing if deferred execution is enabled for the content item. Task-number: QTBUG-50992 Change-Id: I11022c3c380311396453cf6229e068e4aae2d82a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickabstractbutton.cpp')
-rw-r--r--src/quicktemplates2/qquickabstractbutton.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/quicktemplates2/qquickabstractbutton.cpp b/src/quicktemplates2/qquickabstractbutton.cpp
index 7448ac9a..45ade7bb 100644
--- a/src/quicktemplates2/qquickabstractbutton.cpp
+++ b/src/quicktemplates2/qquickabstractbutton.cpp
@@ -131,13 +131,6 @@ QQuickAbstractButtonPrivate::QQuickAbstractButtonPrivate()
{
}
-QQuickItem *QQuickAbstractButtonPrivate::getContentItem()
-{
- if (!contentItem)
- executeContentItem();
- return contentItem;
-}
-
void QQuickAbstractButtonPrivate::handlePress(const QPointF &point)
{
Q_Q(QQuickAbstractButton);
@@ -605,7 +598,6 @@ void QQuickAbstractButton::componentComplete()
{
Q_D(QQuickAbstractButton);
d->executeIndicator(true);
- d->executeContentItem(true);
QQuickControl::componentComplete();
}