diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-07-02 08:04:48 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-07-02 06:41:57 +0000 |
commit | 90a7a1a6c143c610ff08119cd513526da9e637f7 (patch) | |
tree | 81225eed81d5cdf9c719a62e4502275fce315819 /src/quick | |
parent | ffeaac704efc9eb85464d0a401d98e28991ec4d3 (diff) |
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 <simon.hausmann@qt.io>
Diffstat (limited to 'src/quick')
-rw-r--r-- | src/quick/items/qquickitem.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |