summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qobject_p.h
diff options
context:
space:
mode:
authorBernhard Übelacker <bernhardu@mailbox.org>2017-02-13 17:25:10 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2017-05-12 08:12:06 +0000
commitdf57011bdc30309960c8c4ef93b76633701d4bf3 (patch)
treede32811f17400b1820faac466cc5df3f0bcfbbd4 /src/corelib/kernel/qobject_p.h
parent4bb64b0ee500484106adee726c3ef4d58a0fc3ba (diff)
Make relation of currentChildBeingDeleted and isDeletingChildren more obvious
Add a comment, to describe the relation of QObjectPrivate::currentChildBeingDeleted and QObjectData::isDeletingChildren, given that this field is defined in an entirely other file on a base-class, making it severely non-obvious to the reader. Task-number: QTBUG-57714 Change-Id: I7b8b24693c4ccc6192e9f9f34f951202b7fdddb0 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject_p.h')
-rw-r--r--src/corelib/kernel/qobject_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject_p.h b/src/corelib/kernel/qobject_p.h
index 2bdaffb465..0a5d003b05 100644
--- a/src/corelib/kernel/qobject_p.h
+++ b/src/corelib/kernel/qobject_p.h
@@ -234,7 +234,7 @@ public:
mutable quint32 connectedSignals[2];
union {
- QObject *currentChildBeingDeleted;
+ QObject *currentChildBeingDeleted; // should only be used when QObjectData::isDeletingChildren is set
QAbstractDeclarativeData *declarativeData; //extra data used by the declarative module
};