summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qproperty.h2
-rw-r--r--src/corelib/kernel/qpropertybinding.cpp7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h
index 7fd8c2e17e..5e1d8ec2f6 100644
--- a/src/corelib/kernel/qproperty.h
+++ b/src/corelib/kernel/qproperty.h
@@ -137,6 +137,8 @@ public:
QMetaType valueMetaType() const;
+ void setDirty(bool dirty = true);
+
private:
explicit QUntypedPropertyBinding(const QPropertyBindingPrivatePtr &priv);
friend class QtPrivate::QPropertyBase;
diff --git a/src/corelib/kernel/qpropertybinding.cpp b/src/corelib/kernel/qpropertybinding.cpp
index fb372fcdfc..78d24cbdc1 100644
--- a/src/corelib/kernel/qpropertybinding.cpp
+++ b/src/corelib/kernel/qpropertybinding.cpp
@@ -162,4 +162,11 @@ QMetaType QUntypedPropertyBinding::valueMetaType() const
return d->metaType;
}
+void QUntypedPropertyBinding::setDirty(bool dirty)
+{
+ if (!d)
+ return;
+ d->dirty = dirty;
+}
+
QT_END_NAMESPACE