X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/f311fbc3e1436bf248c54225f0743cfa671c4bd7..e5af659f87bcb199d6a5f10f09b311138351d0f3:/ConnectionItem.cpp?ds=inline diff --git a/ConnectionItem.cpp b/ConnectionItem.cpp index eaf46c2..78a3651 100644 --- a/ConnectionItem.cpp +++ b/ConnectionItem.cpp @@ -84,6 +84,13 @@ ConnectionItem::ConnectionItem(InterfaceItem* _iface1, setFlag(ItemSendsGeometryChanges); setCursor(Qt::PointingHandCursor); setZValue(0); + + if (fromInterfaceItem->refInter->getPurpose() == AbstractInterface::Data) { + visible = true; + } + else { + visible = false; + } setPath(); } @@ -133,6 +140,8 @@ void ConnectionItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { + if (!visible) return; + painter->setPen(Qt::blue); if(selected){ painter->setPen(Qt::red);