forked from qt-creator/qt-creator
QmlDesigner.NodeInstances: Refactoring dirty to isDirty
Change-Id: I6344632a8570ad09e38c7d3dc093c42d758bf15a Reviewed-on: http://codereview.qt.nokia.com/3974 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
+3
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user