QmlDesigner.NodeInstances: Polish items for data collection

Change-Id: I3ca322ae72b546b0a55162f376a2895642c7a187
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2012-10-16 16:32:54 +02:00
committed by Thomas Hartmann
parent e6fe6c0f1f
commit ac4df34db7
3 changed files with 7 additions and 0 deletions

View File

@@ -92,6 +92,8 @@ void Qt5InformationNodeInstanceServer::collectItemChangesAndSendChangeCommands()
if (!inFunction) { if (!inFunction) {
inFunction = true; inFunction = true;
DesignerSupport::polishItems(quickView());
QSet<ServerNodeInstance> informationChangedInstanceSet; QSet<ServerNodeInstance> informationChangedInstanceSet;
QVector<InstancePropertyPair> propertyChangedList; QVector<InstancePropertyPair> propertyChangedList;
bool adjustSceneRect = false; bool adjustSceneRect = false;

View File

@@ -70,6 +70,9 @@ void Qt5PreviewNodeInstanceServer::collectItemChangesAndSendChangeCommands()
if (!inFunction && nodeInstanceClient()->bytesToWrite() < 10000) { if (!inFunction && nodeInstanceClient()->bytesToWrite() < 10000) {
inFunction = true; inFunction = true;
DesignerSupport::polishItems(quickView());
QVector<ImageContainer> imageContainerVector; QVector<ImageContainer> imageContainerVector;
imageContainerVector.append(ImageContainer(0, renderPreviewImage(), -1)); imageContainerVector.append(ImageContainer(0, renderPreviewImage(), -1));

View File

@@ -79,6 +79,8 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
if (!inFunction) { if (!inFunction) {
inFunction = true; inFunction = true;
DesignerSupport::polishItems(quickView());
if (quickView() && nodeInstanceClient()->bytesToWrite() < 10000) { if (quickView() && nodeInstanceClient()->bytesToWrite() < 10000) {
foreach (QQuickItem *item, allItems()) { foreach (QQuickItem *item, allItems()) {
if (item) { if (item) {