X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..07a20cc501e4061a82e7795d9243a4ff2512136a:/GroupScene.cpp diff --git a/GroupScene.cpp b/GroupScene.cpp index 7ba8c9d..daf6bf1 100644 --- a/GroupScene.cpp +++ b/GroupScene.cpp @@ -84,11 +84,12 @@ QList GroupScene::getGroupAndBlocks() { return lst; } -void GroupScene::createBlockItem(AbstractBlock *block) { +BoxItem *GroupScene::createBlockItem(AbstractBlock *block) { BoxItem* blockItem = new BoxItem(block,dispatcher,params,groupItem); blockItem->setZValue(1); addBlockItem(blockItem); + return blockItem; } void GroupScene::addBlockItem(BoxItem* item) { @@ -179,7 +180,7 @@ void GroupScene::unselecteInterfaces() { void GroupScene::updateConnectionItemsShape() { foreach(ConnectionItem* conn, connectionItems){ - conn->setPathes(); + conn->setPath(); } }