X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/43fd94117de66d533ef9e58b2de85daa244da309..e5af659f87bcb199d6a5f10f09b311138351d0f3:/GroupItem.cpp?ds=inline diff --git a/GroupItem.cpp b/GroupItem.cpp index 679cc5e..5d84381 100644 --- a/GroupItem.cpp +++ b/GroupItem.cpp @@ -266,6 +266,11 @@ bool GroupItem::updateGeometry(ChangeType type) { return false; } +void GroupItem::interfaceRenamed() { + updateGeometry(InterfaceMove); +} + + void GroupItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event) { if(params->editState == Parameters::EditGroupMove) { @@ -647,7 +652,7 @@ void GroupItem::load(QDomElement groupElement) throw(Exception) { double position = currentInterfaceNode.attribute("position","none").toDouble(&ok); if(!ok) throw(Exception(PROJECTFILE_CORRUPTED)); - GroupInterface *groupInterface = new GroupInterface(groupBlock,name,direction); + GroupInterface *groupInterface = new GroupInterface(groupBlock,name,direction,AbstractInterface::Data); InterfaceItem *interfaceItem = new InterfaceItem(position,orientation,groupInterface,this,params); interfaceItem->setId(id); @@ -669,7 +674,7 @@ void GroupItem::save(QXmlStreamWriter &writer) { if(parentItem != NULL){ attrUpperItem = QString::number(parentItem->getId()); } - QString attrPos = QString::number(pos().x()).append(",").append(QString::number(pos().y())); + QString attrPos = QString::number((int)(pos().x())).append(",").append(QString::number((int)(pos().y()))); QString attrDim = QString::number(getWidth()).append(",").append(QString::number(getHeight()));