|
|
|
@ -136,17 +136,17 @@ void PinItem::drawShape( TQPainter& p )
|
|
|
|
|
if ( (m_pinSettings->type() == PinSettings::pt_input && onLeft) ||
|
|
|
|
|
(m_pinSettings->type() == PinSettings::pt_output && !onLeft) )
|
|
|
|
|
{
|
|
|
|
|
pa[0] = TQPoint::TQPoint( midRight, midY );
|
|
|
|
|
pa[1] = TQPoint::TQPoint( midLeft, midY - PinDirArrow );
|
|
|
|
|
pa[2] = TQPoint::TQPoint( midLeft, midY + PinDirArrow );
|
|
|
|
|
pa[0] = TQPoint( midRight, midY );
|
|
|
|
|
pa[1] = TQPoint( midLeft, midY - PinDirArrow );
|
|
|
|
|
pa[2] = TQPoint( midLeft, midY + PinDirArrow );
|
|
|
|
|
p.drawPolygon(pa);
|
|
|
|
|
p.drawLine ( left, midY, right, midY );
|
|
|
|
|
}
|
|
|
|
|
else // Left facing arrow
|
|
|
|
|
{
|
|
|
|
|
pa[0] = TQPoint::TQPoint( midLeft, midY );
|
|
|
|
|
pa[1] = TQPoint::TQPoint( midRight, midY - PinDirArrow );
|
|
|
|
|
pa[2] = TQPoint::TQPoint( midRight, midY + PinDirArrow );
|
|
|
|
|
pa[0] = TQPoint( midLeft, midY );
|
|
|
|
|
pa[1] = TQPoint( midRight, midY - PinDirArrow );
|
|
|
|
|
pa[2] = TQPoint( midRight, midY + PinDirArrow );
|
|
|
|
|
p.drawPolygon(pa);
|
|
|
|
|
p.drawLine ( left, midY, right, midY );
|
|
|
|
|
}
|
|
|
|
|