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;
QPointF newPos(x,y);
newPos = newPos-item->getOriginPoint();
item->moveTo(newPos);
-
+*/
return item;
}