Commit eb278868 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Remove old refresh bindings function

parent 3b28e71e
...@@ -371,8 +371,6 @@ void ObjectNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParentIn ...@@ -371,8 +371,6 @@ void ObjectNodeInstance::reparent(const ObjectNodeInstance::Pointer &oldParentIn
m_parentProperty = newParentProperty; m_parentProperty = newParentProperty;
addToNewProperty(object(), newParentInstance->object(), newParentProperty); addToNewProperty(object(), newParentInstance->object(), newParentProperty);
} }
refreshBindings(context()->engine()->rootContext());
} }
void ObjectNodeInstance::setPropertyVariant(const QString &name, const QVariant &value) void ObjectNodeInstance::setPropertyVariant(const QString &name, const QVariant &value)
...@@ -970,17 +968,6 @@ void ObjectNodeInstance::createDynamicProperty(const QString &name, const QStrin ...@@ -970,17 +968,6 @@ void ObjectNodeInstance::createDynamicProperty(const QString &name, const QStrin
m_metaObject->createNewProperty(name); m_metaObject->createNewProperty(name);
} }
/**
Force all bindings in this or a sub context to be re-evaluated.
*/
void ObjectNodeInstance::refreshBindings(QDeclarativeContext *context)
{
// TODO: Maybe do this via a timer to prevent update flooding
static int i = 0;
context->setContextProperty(QString("__dummy_%1").arg(i++), true);
}
bool ObjectNodeInstance::updateStateVariant(const ObjectNodeInstance::Pointer &/*target*/, const QString &/*propertyName*/, const QVariant &/*value*/) bool ObjectNodeInstance::updateStateVariant(const ObjectNodeInstance::Pointer &/*target*/, const QString &/*propertyName*/, const QVariant &/*value*/)
{ {
return false; return false;
......
...@@ -183,8 +183,6 @@ protected: ...@@ -183,8 +183,6 @@ protected:
void deleteObjectsInList(const QDeclarativeProperty &metaProperty); void deleteObjectsInList(const QDeclarativeProperty &metaProperty);
private: private:
static void refreshBindings(QDeclarativeContext *context);
QHash<QString, QVariant> m_resetValueHash; QHash<QString, QVariant> m_resetValueHash;
QHash<QString, ServerNodeInstance> m_modelAbstractPropertyHash; QHash<QString, ServerNodeInstance> m_modelAbstractPropertyHash;
mutable QHash<QString, bool> m_hasBindingHash; mutable QHash<QString, bool> m_hasBindingHash;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment