forked from qt-creator/qt-creator
QmlDesigner: Fix rendering rendering of items
The else clause was wrong. It should be that it is not a node instance but it was that it was not a dirty node instance. Change-Id: I657bbc03826edcb9a1ea46f9c3b44404b2d3f31a Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -83,8 +83,8 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
|
|||||||
if (quickView() && nodeInstanceClient()->bytesToWrite() < 10000) {
|
if (quickView() && nodeInstanceClient()->bytesToWrite() < 10000) {
|
||||||
foreach (QQuickItem *item, allItems()) {
|
foreach (QQuickItem *item, allItems()) {
|
||||||
if (item) {
|
if (item) {
|
||||||
if (hasInstanceForObject(item)
|
if (hasInstanceForObject(item)) {
|
||||||
&& DesignerSupport::isDirty(item, DesignerSupport::ContentUpdateMask)) {
|
if (DesignerSupport::isDirty(item, DesignerSupport::ContentUpdateMask))
|
||||||
m_dirtyInstanceSet.insert(instanceForObject(item));
|
m_dirtyInstanceSet.insert(instanceForObject(item));
|
||||||
} else if (DesignerSupport::isDirty(item, DesignerSupport::AllMask)) {
|
} else if (DesignerSupport::isDirty(item, DesignerSupport::AllMask)) {
|
||||||
ServerNodeInstance ancestorInstance = findNodeInstanceForItem(item->parentItem());
|
ServerNodeInstance ancestorInstance = findNodeInstanceForItem(item->parentItem());
|
||||||
|
Reference in New Issue
Block a user