summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qproperty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qproperty.cpp')
-rw-r--r--src/corelib/kernel/qproperty.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp
index 92c9afc6d8..f7039cc62a 100644
--- a/src/corelib/kernel/qproperty.cpp
+++ b/src/corelib/kernel/qproperty.cpp
@@ -206,6 +206,11 @@ BindingEvaluationState::~BindingEvaluationState()
*currentState = previousState;
}
+QPropertyBindingPrivate *QPropertyBindingPrivate::currentlyEvaluatingBinding()
+{
+ return currentBindingEvaluationState ? currentBindingEvaluationState->binding : nullptr;
+}
+
void QPropertyBase::evaluateIfDirty()
{
QPropertyBasePointer d{this};