summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/ecopamp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/electronics/components/ecopamp.cpp')
-rw-r--r--src/electronics/components/ecopamp.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/electronics/components/ecopamp.cpp b/src/electronics/components/ecopamp.cpp
index dbb7457..04ed81f 100644
--- a/src/electronics/components/ecopamp.cpp
+++ b/src/electronics/components/ecopamp.cpp
@@ -14,7 +14,7 @@
#include "libraryitem.h"
#include <klocale.h>
-#include <qpainter.h>
+#include <tqpainter.h>
Item* ECOpAmp::construct( ItemDocument *itemDocument, bool newItem, const char *id )
{
@@ -40,10 +40,10 @@ ECOpAmp::ECOpAmp( ICNDocument *icnDocument, bool newItem, const char *id )
m_name = i18n("Operational Amplifier");
m_desc = i18n("Ideal amplifier");
- QPointArray pa(3);
- pa[0] = QPoint( -16, -16 );
- pa[1] = QPoint( 16, 0 );
- pa[2] = QPoint( -16, 16 );
+ TQPointArray pa(3);
+ pa[0] = TQPoint( -16, -16 );
+ pa[1] = TQPoint( 16, 0 );
+ pa[2] = TQPoint( -16, 16 );
setItemPoints( pa, true );
init2PinLeft( -8, 8 );
@@ -57,17 +57,17 @@ ECOpAmp::~ECOpAmp()
}
-void ECOpAmp::drawShape( QPainter & p )
+void ECOpAmp::drawShape( TQPainter & p )
{
initPainter(p);
int _x = int(x());
int _y = int(y());
- QPointArray pa(3);
- pa[0] = QPoint( _x-16, _y-16 );
- pa[1] = QPoint( _x+16, _y );
- pa[2] = QPoint( _x-16, _y+16 );
+ TQPointArray pa(3);
+ pa[0] = TQPoint( _x-16, _y-16 );
+ pa[1] = TQPoint( _x+16, _y );
+ pa[2] = TQPoint( _x-16, _y+16 );
p.drawPolygon(pa);
p.drawPolyline(pa);