From affdf1c47f54885c3f9c3d396e10912bc3bb7ae9 Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@nokia.com>
Date: Fri, 19 Mar 2010 13:55:17 +0100
Subject: [PATCH] Fix compilation error due to missing symbol export in
 QtDeclarative

Work around missing export of refreshBindings() by indirectly forcing
the refresh via setContextProperty.
---
 src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp b/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp
index cc795afaf43..73e2e4dce94 100644
--- a/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp
+++ b/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp
@@ -689,7 +689,9 @@ void ObjectNodeInstance::createDynamicProperty(const QString &name, const QStrin
 void ObjectNodeInstance::refreshBindings(QDeclarativeContext *context)
 {
     // TODO: Maybe do this via a timer to prevent update flooding
-    QDeclarativeContextPrivate::get(context)->data->refreshExpressions();
+
+    static int i = 0;
+    context->setContextProperty(QString("__dummy_%1").arg(i++), true);
 }
 
 }
-- 
GitLab