X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/1b7818e18ed7bcf3464e307b97c6e0e6d72cc69b..2bdaa0aa3fab52f0808f60d9bbdabcd56d0efae9:/GroupScene.cpp?ds=sidebyside diff --git a/GroupScene.cpp b/GroupScene.cpp index 0eaa8a1..05d7c4c 100644 --- a/GroupScene.cpp +++ b/GroupScene.cpp @@ -103,15 +103,17 @@ int GroupScene::setInterfacesId(int countInit) { return counter; } -BoxItem *GroupScene::createBoxItem(AbstractBlock *block, BoxItem::Position hPos, BoxItem::Position vPos, AbstractBoxItem::LockType lock, BoxItem::SpanType span) { +BoxItem *GroupScene::createBoxItem(AbstractBlock *block, BoxItem::Position position, int lock, BoxItem::SpanType span) { - BoxItem* item = new BoxItem(block,dispatcher,params,groupItem, lock, span); + BoxItem* item = new BoxItem(block,dispatcher,params,groupItem, lock, span, position); item->setZValue(1); // add item from the QList boxItems.append(item); // repainting the group groupItem->updateShape(); - // center the new block + +/* + // position the new block double x,y; if (hPos == BoxItem::Left) { x = 0; @@ -134,7 +136,7 @@ BoxItem *GroupScene::createBoxItem(AbstractBlock *block, BoxItem::Position hPos, QPointF newPos(x,y); newPos = newPos-item->getOriginPoint(); item->moveTo(newPos); - +*/ return item; }