Commit 11d4cbc1 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.NodeInstances: Fix that scene tranform isn't updated

This change has to go to 2.3

Change-Id: I5d3ebfbff2df8129e5f6678e877c641e0ea926cb
Reviewed-on: http://codereview.qt.nokia.com/887

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent eb99a19b
......@@ -145,6 +145,11 @@ void Qt4InformationNodeInstanceServer::collectItemChangesAndSendChangeCommands()
}
}
foreach (QGraphicsItem *item, declarativeView()->items()) {
QGraphicsItemPrivate *d = QGraphicsItemPrivate::get(item);
d->ensureSceneTransform();
}
foreach (const InstancePropertyPair& property, changedPropertyList()) {
const ServerNodeInstance instance = property.first;
const QString propertyName = property.second;
......
......@@ -135,7 +135,6 @@ void Qt4NodeInstanceServer::resetAllItems()
foreach (QGraphicsItem *item, declarativeView()->items()) {
static_cast<QGraphicsScenePrivate*>(QObjectPrivate::get(declarativeView()->scene()))->resetDirtyItem(item);
QGraphicsItemPrivate::get(item)->dirtySceneTransform = 0;
}
}
......
......@@ -111,6 +111,11 @@ void Qt4RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
}
}
foreach (QGraphicsItem *item, declarativeView()->items()) {
QGraphicsItemPrivate *d = QGraphicsItemPrivate::get(item);
d->ensureSceneTransform();
}
foreach (const InstancePropertyPair& property, changedPropertyList()) {
const ServerNodeInstance instance = property.first;
const QString propertyName = property.second;
......
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