X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/df84660fd98b39737692d57b68c8b2c2d34af0f1..4cf57e6db08da791233d75237f62e74bc88dd427:/InterfaceItem.cpp diff --git a/InterfaceItem.cpp b/InterfaceItem.cpp index 10158d7..443cee0 100644 --- a/InterfaceItem.cpp +++ b/InterfaceItem.cpp @@ -128,6 +128,16 @@ void InterfaceItem::paint(QPainter *painter) { painter->drawPath(params->outArrow); } + // paint modifier box if needed + + if (refInter->getInputModifier() != NULL) { + painter->save(); + painter->translate(params->arrowWidth+params->arrowLineLength,0); + painter->drawRect(0,-5,10,10); + painter->restore(); + } + + // draw names if(selected) { painter->setPen(QPen(Qt::red,2)); @@ -164,7 +174,9 @@ void InterfaceItem::paint(QPainter *painter) { else if((owner->isBoxItem()) || (owner->isSourceItem())){ painter->drawText(-w,-h/2,w,h,Qt::AlignLeft | Qt::TextWordWrap, refInter->getName()); } - } + } + + painter->restore(); }