Fix compilation with gcc 4.8

GCC 4.8 doesn't like using QPointer in signal connections.

Change-Id: Idc61984b155b0af8d1afb9d43c9eaf44ca9073cd
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Ville Voutilainen 2018-12-03 14:28:41 +02:00
parent ccf9a78e36
commit da55026c97
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ void QQuickControlPrivate::setContentItem_helper(QQuickItem *item, bool notify)
delete oldContentItem;
if (item) {
connect(contentItem, &QQuickItem::baselineOffsetChanged, this, &QQuickControlPrivate::updateBaselineOffset);
connect(contentItem.data(), &QQuickItem::baselineOffsetChanged, this, &QQuickControlPrivate::updateBaselineOffset);
if (!item->parentItem())
item->setParentItem(q);
if (componentComplete)