Fix ktechlab FTBFS on gcc4.6

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1244540 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent faa9ae7ea5
commit 5c472ea528

@ -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 );
}

Loading…
Cancel
Save