]> AND Private Git Repository - blast.git/blobdiff - GroupScene.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
insert/move/remove block/groups/interface done. Next to fo: loading project file
[blast.git] / GroupScene.cpp
index 7ba8c9d1310bcd0efe6d88aab80e3a37be0635ed..daf6bf1e2102d782f883655dd708b8b899786169 100644 (file)
@@ -84,11 +84,12 @@ QList<AbstractBoxItem*> GroupScene::getGroupAndBlocks() {
   return lst;
 }
 
   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);
 
   BoxItem* blockItem = new BoxItem(block,dispatcher,params,groupItem);
   blockItem->setZValue(1);
   addBlockItem(blockItem);
+  return blockItem;
 }
 
 void GroupScene::addBlockItem(BoxItem* item) {
 }
 
 void GroupScene::addBlockItem(BoxItem* item) {
@@ -179,7 +180,7 @@ void GroupScene::unselecteInterfaces() {
 void GroupScene::updateConnectionItemsShape() {
 
   foreach(ConnectionItem* conn, connectionItems){
 void GroupScene::updateConnectionItemsShape() {
 
   foreach(ConnectionItem* conn, connectionItems){
-    conn->setPathes();
+    conn->setPath();
   }
 }
 
   }
 }