}
void BoxItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
+
+ if (!visible) return;
+
QPen pen(Qt::black, 3);
if(selected)
pen.setColor(Qt::red);
writer.writeAttribute("id",QString::number(inter->getId()));
writer.writeAttribute("name",inter->getName());
- writer.writeAttribute("ref_name",inter->refInter->getName());
+ writer.writeAttribute("ref_name",inter->getReferenceName());
writer.writeAttribute("orientation",inter->getStrOrientation());
writer.writeAttribute("position",QString::number(inter->getPositionRatio()));