summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qpropertyprivate.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-10-17 12:21:20 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-10-20 17:14:38 +0200
commitc6bc549b6bec99241710f38fcc73adc7c1dde9a9 (patch)
tree075aca24ff070d0ac7ccc1608ac9687c88ce7dde /src/corelib/kernel/qpropertyprivate.h
parentaf2f88f5b65d597116140f661030ba1ccf560ab2 (diff)
Optimize QObjectCompatProperty::notify
Do the check for inBindingWrapper() last. Change-Id: I3d589c9fba524f465e35cd4cc0e65e3af376b419 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qpropertyprivate.h')
-rw-r--r--src/corelib/kernel/qpropertyprivate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/kernel/qpropertyprivate.h b/src/corelib/kernel/qpropertyprivate.h
index fec69f3a72..1c7f13046f 100644
--- a/src/corelib/kernel/qpropertyprivate.h
+++ b/src/corelib/kernel/qpropertyprivate.h
@@ -151,6 +151,7 @@ private:
class QUntypedPropertyBinding;
class QPropertyBindingPrivate;
struct QPropertyBindingDataPointer;
+struct QPropertyObserverPointer;
class QUntypedPropertyData
{
@@ -334,6 +335,11 @@ private:
quintptr d() const { return d_ref(); }
void registerWithCurrentlyEvaluatingBinding_helper(BindingEvaluationState *currentBinding) const;
void removeBinding_helper();
+
+ enum NotificationResult { Delayed, Evaluated };
+ NotificationResult notifyObserver_helper(
+ QUntypedPropertyData *propertyDataPtr, QPropertyObserverPointer observer,
+ QBindingStorage *storage) const;
};
template <typename T, typename Tag>