Skip to content
Snippets Groups Projects
Commit bb0900d6 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Refactoring dirty to isDirty

Change-Id: I6344632a8570ad09e38c7d3dc093c42d758bf15a
Reviewed-on: http://codereview.qt.nokia.com/3974


Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
parent 1e60fbfb
No related branches found
No related tags found
No related merge requests found
......@@ -103,14 +103,15 @@ void Qt5InformationNodeInstanceServer::collectItemChangesAndSendChangeCommands()
ServerNodeInstance instance = instanceForObject(item);
DesignerSupport::DirtyType informationsDirty = DesignerSupport::DirtyType(DesignerSupport::TransformUpdateMask
| DesignerSupport::ContentUpdateMask
| DesignerSupport::Visible
| DesignerSupport::ZValue
| DesignerSupport::OpacityValue);
if (DesignerSupport::dirty(item, informationsDirty))
if (DesignerSupport::isDirty(item, informationsDirty))
informationChangedInstanceSet.insert(instance);
if (DesignerSupport::dirty(item, DesignerSupport::ParentChanged)) {
if (DesignerSupport::isDirty(item, DesignerSupport::ParentChanged)) {
m_parentChangedSet.insert(instance);
informationChangedInstanceSet.insert(instance);
}
......
......@@ -82,7 +82,7 @@ void Qt5RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
foreach (QSGItem *item, allItems()) {
if (item && hasInstanceForObject(item)) {
ServerNodeInstance instance = instanceForObject(item);
if (DesignerSupport::dirty(item, DesignerSupport::ContentUpdateMask))
if (DesignerSupport::isDirty(item, DesignerSupport::ContentUpdateMask))
m_dirtyInstanceSet.insert(instance);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment