diff options
Diffstat (limited to 'src/declarative/qml/qmlbinding.cpp')
-rw-r--r-- | src/declarative/qml/qmlbinding.cpp | 8 |
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; |