diff options
Diffstat (limited to 'src/flowparts')
-rw-r--r-- | src/flowparts/flowpart.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/flowparts/flowpart.cpp b/src/flowparts/flowpart.cpp index abf8880..69d42a4 100644 --- a/src/flowparts/flowpart.cpp +++ b/src/flowparts/flowpart.cpp @@ -831,10 +831,10 @@ void FlowPart::orientationPixmap( uint orientation, TQPixmap & pm ) const } TQBitmap tqmask( 50, 50 ); - TQPainter tqmaskPainter(&tqmask); + TQPainter maskPainter(&tqmask); tqmask.fill( TQt::color0 ); - tqmaskPainter.setBrush(TQt::color1); - tqmaskPainter.setPen(TQt::color1); + maskPainter.setBrush(TQt::color1); + maskPainter.setPen(TQt::color1); TQPainter p(&pm); p.setBrush(m_brushCol); @@ -862,14 +862,14 @@ void FlowPart::orientationPixmap( uint orientation, TQPixmap & pm ) const diamond[i] = c[i]; p.drawPolygon(diamond); - tqmaskPainter.drawPolygon(diamond); + maskPainter.drawPolygon(diamond); //END Draw diamond outline //BEGIN Draw input int pos0 = nodeDirToPos( diamondNodePositioning[orientation][0] ); p.drawLine( c[pos0], d[pos0] ); - tqmaskPainter.drawLine( c[pos0], d[pos0] ); + maskPainter.drawLine( c[pos0], d[pos0] ); //END Draw input @@ -883,7 +883,7 @@ void FlowPart::orientationPixmap( uint orientation, TQPixmap & pm ) const int pos1 = nodeDirToPos( diamondNodePositioning[orientation][1] ); tick.translate( d[pos1].x(), d[pos1].y() ); p.drawLineSegments(tick); - tqmaskPainter.drawLineSegments(tick); + maskPainter.drawLineSegments(tick); //END Draw "true" output as a tick @@ -897,14 +897,14 @@ void FlowPart::orientationPixmap( uint orientation, TQPixmap & pm ) const int pos2 = nodeDirToPos( diamondNodePositioning[orientation][2] ); cross.translate( d[pos2].x(), d[pos2].y() ); p.drawLineSegments(cross); - tqmaskPainter.drawLineSegments(cross); + maskPainter.drawLineSegments(cross); //END Draw "false" output as a cross } else if ( m_stdInput || m_stdOutput ) { p.drawRoundRect( int(0.3*size.width()), int(0.4*size.height()), int(0.4*size.width()), int(0.2*size.height()) ); - tqmaskPainter.drawRoundRect( int(0.3*size.width()), int(0.4*size.height()), int(0.4*size.width()), int(0.2*size.height()) ); + maskPainter.drawRoundRect( int(0.3*size.width()), int(0.4*size.height()), int(0.4*size.width()), int(0.2*size.height()) ); int hal = 5; // half arrow length int haw = 3; // half arrow width @@ -952,7 +952,7 @@ void FlowPart::orientationPixmap( uint orientation, TQPixmap & pm ) const } inArrow.translate( d[inPos].x(), d[inPos].y() ); p.drawPolygon(inArrow); - tqmaskPainter.drawPolygon(inArrow); + maskPainter.drawPolygon(inArrow); } if ( outPos != -1 ) @@ -964,7 +964,7 @@ void FlowPart::orientationPixmap( uint orientation, TQPixmap & pm ) const } outArrow.translate( d[outPos].x(), d[outPos].y() ); p.drawPolygon(outArrow); - tqmaskPainter.drawPolygon(outArrow); + maskPainter.drawPolygon(outArrow); } } |