summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2020-12-18 12:15:21 +0100
committerAndreas Buhr <andreas.buhr@qt.io>2020-12-21 10:21:10 +0100
commit855a0433a595afad36c81b1e4fbac8bccaf5f714 (patch)
tree59f60dc444b1c9748717c312fb64e3996a9c4b99 /src
parent096b4590d5aefc16b9c68611fdc1463b4c173f80 (diff)
Add some comments to clarify meaning of observers in property system
It took me quite a while to figure out that two objects with a similar type and a similar name which occur side by side have a quite different meaning. Add a comment for the next one. Change-Id: Idf4d63d8ed09ead2c3d82a798e6d7476024209bf Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qproperty_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h
index 3b874ec27b..1574cc263b 100644
--- a/src/corelib/kernel/qproperty_p.h
+++ b/src/corelib/kernel/qproperty_p.h
@@ -184,10 +184,10 @@ private:
QtPrivate::QPropertyObserverCallback staticObserverCallback = nullptr;
QtPrivate::QPropertyBindingWrapper staticBindingWrapper;
};
- ObserverArray inlineDependencyObservers;
+ ObserverArray inlineDependencyObservers; // for things we are observing
- QPropertyObserverPointer firstObserver;
- QScopedPointer<std::vector<QPropertyObserver>> heapObservers;
+ QPropertyObserverPointer firstObserver; // list of observers observing us
+ QScopedPointer<std::vector<QPropertyObserver>> heapObservers; // for things we are observing
QUntypedPropertyData *propertyDataPtr = nullptr;