Commit bb0900d6 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.NodeInstances: Refactoring dirty to isDirty

Change-Id: I6344632a8570ad09e38c7d3dc093c42d758bf15a
Reviewed-on: http://codereview.qt.nokia.com/3974Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
parent 1e60fbfb
......@@ -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);
}
}
......
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