diff options
author | Ville Voutilainen <ville.voutilainen@qt.io> | 2018-12-03 14:28:41 +0200 |
---|---|---|
committer | Ville Voutilainen <ville.voutilainen@qt.io> | 2018-12-03 13:09:51 +0000 |
commit | da55026c975093e9e1e4374d9930861bcffdf8bf (patch) | |
tree | ee7c9f8653574347e822f10e0f9f8a5d829a9564 | |
parent | ccf9a78e366695ce4ac3b8040c034800469804a7 (diff) |
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>
-rw-r--r-- | src/quicktemplates2/qquickcontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcontrol.cpp b/src/quicktemplates2/qquickcontrol.cpp index 26e28ebe..90bbf22a 100644 --- a/src/quicktemplates2/qquickcontrol.cpp +++ b/src/quicktemplates2/qquickcontrol.cpp @@ -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) |