forked from qt-creator/qt-creator
Scxml: Simplify code
Change-Id: Ia1ea8527054a9c94e5f40cca665f7f4b0a5c53e7 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -492,7 +492,7 @@ void GraphicsScene::endTagChange(ScxmlDocument::TagChange change, ScxmlTag *tag,
|
|||||||
|
|
||||||
if (childItem) {
|
if (childItem) {
|
||||||
BaseItem *newParentItem = findItem(tag->parentTag());
|
BaseItem *newParentItem = findItem(tag->parentTag());
|
||||||
BaseItem *oldParentItem = childItem ? childItem->parentBaseItem() : nullptr;
|
BaseItem *oldParentItem = childItem->parentBaseItem();
|
||||||
|
|
||||||
QPointF sPos = childItem->scenePos();
|
QPointF sPos = childItem->scenePos();
|
||||||
if (oldParentItem) {
|
if (oldParentItem) {
|
||||||
|
Reference in New Issue
Block a user