Refactoring.
--HG-- branch : develop
This commit is contained in:
parent
ccda742aa8
commit
b42664ce80
|
@ -81,7 +81,7 @@ void AddItemToGroup::performUndoRedo(bool isUndo)
|
||||||
// undo, it stays unvisible until the entire drawing is completly rerendered.
|
// undo, it stays unvisible until the entire drawing is completly rerendered.
|
||||||
quint32 objectId = doc->GetParametrUInt(xml, QStringLiteral("object"), NULL_ID_STR);
|
quint32 objectId = doc->GetParametrUInt(xml, QStringLiteral("object"), NULL_ID_STR);
|
||||||
quint32 toolId = doc->GetParametrUInt(xml, QStringLiteral("tool"), NULL_ID_STR);
|
quint32 toolId = doc->GetParametrUInt(xml, QStringLiteral("tool"), NULL_ID_STR);
|
||||||
VDataTool* tool = doc->getTool(toolId);
|
VDataTool* tool = VAbstractPattern::getTool(toolId);
|
||||||
tool->GroupVisibility(objectId,true);
|
tool->GroupVisibility(objectId,true);
|
||||||
}
|
}
|
||||||
else // is redo
|
else // is redo
|
||||||
|
|
|
@ -90,7 +90,7 @@ void RemoveItemFromGroup::performUndoRedo(bool isUndo)
|
||||||
// undo, it stays unvisible until the entire drawing is completly rerendered.
|
// undo, it stays unvisible until the entire drawing is completly rerendered.
|
||||||
quint32 objectId = doc->GetParametrUInt(xml, QStringLiteral("object"), NULL_ID_STR);
|
quint32 objectId = doc->GetParametrUInt(xml, QStringLiteral("object"), NULL_ID_STR);
|
||||||
quint32 toolId = doc->GetParametrUInt(xml, QStringLiteral("tool"), NULL_ID_STR);
|
quint32 toolId = doc->GetParametrUInt(xml, QStringLiteral("tool"), NULL_ID_STR);
|
||||||
VDataTool* tool = doc->getTool(toolId);
|
VDataTool* tool = VAbstractPattern::getTool(toolId);
|
||||||
tool->GroupVisibility(objectId,true);
|
tool->GroupVisibility(objectId,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user