summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlbinding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlbinding.cpp')
-rw-r--r--src/declarative/qml/qmlbinding.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlbinding.cpp b/src/declarative/qml/qmlbinding.cpp
index eb08b61..5f7330f 100644
--- a/src/declarative/qml/qmlbinding.cpp
+++ b/src/declarative/qml/qmlbinding.cpp
@@ -67,6 +67,14 @@ QmlBindingData::~QmlBindingData()
removeError();
}
+void QmlBindingData::refresh()
+{
+ if (enabled && !updating && q) {
+ QmlBinding *b = static_cast<QmlBinding *>(QmlExpressionPrivate::get(q));
+ b->update();
+ }
+}
+
void QmlBindingData::removeError()
{
if (!prevError) return;