From: Aaron Kennedy Date: Wed, 22 Jun 2011 08:30:04 +0000 (+1000) Subject: Support refreshing V8 bindings X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5da45e409103d978bb5c274e86262a8f32b36516;p=konrad%2Fqtdeclarative.git Support refreshing V8 bindings --- diff --git a/src/declarative/qml/v8/qv8bindings.cpp b/src/declarative/qml/v8/qv8bindings.cpp index 2e901a5..fe881a1 100644 --- a/src/declarative/qml/v8/qv8bindings.cpp +++ b/src/declarative/qml/v8/qv8bindings.cpp @@ -61,10 +61,13 @@ public: public QDeclarativeAbstractBinding { Binding(); + void update() { QDeclarativeAbstractBinding::update(); } + // Inherited from QDeclarativeAbstractBinding virtual void setEnabled(bool, QDeclarativePropertyPrivate::WriteFlags flags); virtual void update(QDeclarativePropertyPrivate::WriteFlags flags); virtual void destroy(); + virtual void refresh(); int index:30; bool enabled:1; @@ -99,6 +102,11 @@ void QV8BindingsPrivate::Binding::setEnabled(bool e, QDeclarativePropertyPrivate } } +void QV8BindingsPrivate::Binding::refresh() +{ + update(); +} + void QV8BindingsPrivate::Binding::update(QDeclarativePropertyPrivate::WriteFlags flags) { if (!enabled)