X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/3bcfe4df6fdde086eb1b59f7a0173358170174a1..8fb3c55ee009a11db5e1c08a4cfb286979412745:/InterfaceItem.cpp?ds=sidebyside diff --git a/InterfaceItem.cpp b/InterfaceItem.cpp index 1ef3aae..02b04ac 100644 --- a/InterfaceItem.cpp +++ b/InterfaceItem.cpp @@ -98,7 +98,7 @@ void InterfaceItem::paint(QPainter *painter) { if(owner->isBoxItem()) { painter->setPen(QPen(Qt::black,1)); } - else if(owner->isSourceItem()) { + else if(owner->isStimuliItem()) { painter->setPen(QPen(Qt::darkCyan,1)); } } @@ -165,7 +165,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()) || (owner->isSourceItem())){ + else if((owner->isBoxItem()) || (owner->isStimuliItem())){ painter->drawText(0,-h/2,w,h,Qt::AlignRight | Qt::TextWordWrap, refInter->getName()); } } @@ -174,7 +174,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()) || (owner->isSourceItem())){ + else if((owner->isBoxItem()) || (owner->isStimuliItem())){ painter->drawText(-w,-h/2,w,h,Qt::AlignLeft | Qt::TextWordWrap, refInter->getName()); } }