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:
parent
ccf9a78e36
commit
da55026c97
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue