X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/e5af659f87bcb199d6a5f10f09b311138351d0f3..0d3590739ff5a4ca9e87c052ac142f5d1d3a68ab:/InterfaceItem.cpp?ds=inline diff --git a/InterfaceItem.cpp b/InterfaceItem.cpp index 0047e16..ff6329e 100644 --- a/InterfaceItem.cpp +++ b/InterfaceItem.cpp @@ -95,7 +95,12 @@ void InterfaceItem::paint(QPainter *painter) { painter->setPen(QPen(Qt::red,2)); } else { - painter->setPen(QPen(Qt::black,1)); + if(owner->isBoxItem()) { + painter->setPen(QPen(Qt::black,1)); + } + else if(owner->isSourceItem()) { + painter->setPen(QPen(Qt::darkCyan,1)); + } } painter->translate(originPoint); @@ -141,7 +146,7 @@ void InterfaceItem::paint(QPainter *painter) { if(owner->isGroupItem()){ painter->drawText(-(w+params->arrowWidth+params->arrowLineLength),-h/2,w,h,Qt::AlignLeft | Qt::TextWordWrap, refInter->getName()); } - else if(owner->isBoxItem()){ + else if((owner->isBoxItem()) || (owner->isSourceItem())){ painter->drawText(0,-h/2,w,h,Qt::AlignRight | Qt::TextWordWrap, refInter->getName()); } } @@ -150,7 +155,7 @@ void InterfaceItem::paint(QPainter *painter) { if(owner->isGroupItem()) { painter->drawText(params->arrowWidth+params->arrowLineLength,-h/2,w,h,Qt::AlignRight | Qt::TextWordWrap, refInter->getName()); } - else if(owner->isBoxItem()) { + else if((owner->isBoxItem()) || (owner->isSourceItem())){ painter->drawText(-w,-h/2,w,h,Qt::AlignLeft | Qt::TextWordWrap, refInter->getName()); } }