From 90a7a1a6c143c610ff08119cd513526da9e637f7 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 2 Jul 2018 08:04:48 +0200 Subject: Doc: clarify behavior of QQuickItem's constructor It uses the parent argument as both a visual parent and a QObject parent. Change-Id: Ib6c645c072462501c77f27085cba7538703c5966 Reviewed-by: Simon Hausmann --- src/quick/items/qquickitem.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/quick') diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp index 9be8b7f2b9..aed673d595 100644 --- a/src/quick/items/qquickitem.cpp +++ b/src/quick/items/qquickitem.cpp @@ -2355,6 +2355,9 @@ void QQuickItemPrivate::updateSubFocusItem(QQuickItem *scope, bool focus) \fn QQuickItem::QQuickItem(QQuickItem *parent) Constructs a QQuickItem with the given \a parent. + + The \c parent will be used as both the \l {setParentItem()}{visual parent} + and the \l QObject parent. */ QQuickItem::QQuickItem(QQuickItem* parent) : QObject(*(new QQuickItemPrivate), parent) -- cgit v1.2.3