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>
This commit is contained in:
parent
096b4590d5
commit
855a0433a5
@ -184,10 +184,10 @@ private:
|
|||||||
QtPrivate::QPropertyObserverCallback staticObserverCallback = nullptr;
|
QtPrivate::QPropertyObserverCallback staticObserverCallback = nullptr;
|
||||||
QtPrivate::QPropertyBindingWrapper staticBindingWrapper;
|
QtPrivate::QPropertyBindingWrapper staticBindingWrapper;
|
||||||
};
|
};
|
||||||
ObserverArray inlineDependencyObservers;
|
ObserverArray inlineDependencyObservers; // for things we are observing
|
||||||
|
|
||||||
QPropertyObserverPointer firstObserver;
|
QPropertyObserverPointer firstObserver; // list of observers observing us
|
||||||
QScopedPointer<std::vector<QPropertyObserver>> heapObservers;
|
QScopedPointer<std::vector<QPropertyObserver>> heapObservers; // for things we are observing
|
||||||
|
|
||||||
QUntypedPropertyData *propertyDataPtr = nullptr;
|
QUntypedPropertyData *propertyDataPtr = nullptr;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user