summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@nokia.com>2010-11-24 14:52:06 +0100
committerMarco Bubke <marco.bubke@nokia.com>2010-11-24 15:52:22 +0100
commited42462889b2835f99c714b84fa0db44780a9a26 (patch)
tree1b73d7245eef8ac47e2e57b68b03152b5940ea70 /src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp
parentf123af08b7ce5842e053e855c375ff82f84377f7 (diff)
downloadqt-creator-ed42462889b2835f99c714b84fa0db44780a9a26.tar.gz
QmlDesigner.Instances: Move instances out of process
The complete qml emulation layer (instances) is moved into another external process (qmlpuppet). Summary of architectural changes: - Asynchronous messaging Handling commands and data transfer asynchronously reduces the amount of context switches between processes. - Proxy classes for client process This classes abstract the inter process communication - QVariant based command parsing and serialization Using LocalSocket in bidirectional manner for communications of commands and data transfer. - Integer based identifier instead of ModelNode in client process The qml emulation layer (instances) has no more depencies to our internal data model. - Timer based rendering Rendering in instances is controlled by a timer. Only dirty items are updated.
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp
index 6e0d7b8b24..65eac44dec 100644
--- a/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp
@@ -144,7 +144,6 @@ void FormEditorScene::synchronizeTransformation(const QmlItemNode &qmlItemNode)
{
FormEditorItem *item = itemForQmlItemNode(qmlItemNode);
item->updateGeometry();
- item->update();
if (qmlItemNode.isRootNode()) {
QRectF sceneRect(qmlItemNode.instanceBoundingRect());
@@ -175,8 +174,6 @@ void FormEditorScene::synchronizeOtherProperty(const QmlItemNode &qmlItemNode, c
if (propertyName == "visible")
item->setContentVisible(qmlItemNode.instanceValue("visible").toBool());
- if (item)
- item->update();
}
}
@@ -344,13 +341,6 @@ void FormEditorScene::reparentItem(const QmlItemNode &node, const QmlItemNode &n
if (item->parentItem() != parentItem) {
item->setParentItem(parentItem);
- if (parentItem) {
- item->setVisible(true);
- } else {
- item->setVisible(false);
- }
-
- item->update();
}
}
@@ -380,7 +370,6 @@ void FormEditorScene::clearFormEditorItems()
foreach (QGraphicsItem *item, itemList) {
if (qgraphicsitem_cast<FormEditorItem* >(item)) {
item->setParentItem(0);
- item->setVisible(false);
}
}