diff options
Diffstat (limited to 'src/electronics/components/ecbjt.cpp')
-rw-r--r-- | src/electronics/components/ecbjt.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/electronics/components/ecbjt.cpp b/src/electronics/components/ecbjt.cpp index b4b59f2..aed928e 100644 --- a/src/electronics/components/ecbjt.cpp +++ b/src/electronics/components/ecbjt.cpp @@ -15,7 +15,7 @@ #include <kiconloader.h> #include <klocale.h> -#include <qpainter.h> +#include <tqpainter.h> Item * ECBJT::constructNPN( ItemDocument * itemDocument, bool newItem, const char * id ) { @@ -122,7 +122,7 @@ void ECBJT::dataChanged() } -void ECBJT::drawShape( QPainter &p ) +void ECBJT::drawShape( TQPainter &p ) { const int _x = int(x()); const int _y = int(y()); @@ -133,18 +133,18 @@ void ECBJT::drawShape( QPainter &p ) p.drawLine( _x+8, _y-8, _x-8, _y ); p.drawLine( _x+8, _y+8, _x-8, _y ); - QPointArray pa(3); + TQPointArray pa(3); if ( m_bIsNPN ) { - pa[0] = QPoint( _x+6, _y+7 ); - pa[1] = QPoint( _x+2, _y+8 ); - pa[2] = QPoint( _x+6, _y+3 ); + pa[0] = TQPoint( _x+6, _y+7 ); + pa[1] = TQPoint( _x+2, _y+8 ); + pa[2] = TQPoint( _x+6, _y+3 ); } else { - pa[0] = QPoint( _x-7, _y+1 ); - pa[1] = QPoint( _x-4, _y+5 ); - pa[2] = QPoint( _x-2, _y ); + pa[0] = TQPoint( _x-7, _y+1 ); + pa[1] = TQPoint( _x-4, _y+5 ); + pa[2] = TQPoint( _x-2, _y ); } p.setBrush( p.pen().color() ); p.drawPolygon(pa); |