diff options
Diffstat (limited to 'src/electronics/components/ecdiode.cpp')
-rw-r--r-- | src/electronics/components/ecdiode.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/electronics/components/ecdiode.cpp b/src/electronics/components/ecdiode.cpp index 1d63bce..744f27e 100644 --- a/src/electronics/components/ecdiode.cpp +++ b/src/electronics/components/ecdiode.cpp @@ -14,7 +14,7 @@ #include "libraryitem.h" #include <klocale.h> -#include <qpainter.h> +#include <tqpainter.h> Item* ECDiode::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -72,7 +72,7 @@ ECDiode::ECDiode( ICNDocument *icnDocument, bool newItem, const char *id ) // createProperty( "R", Variant::Type::Double ); // property("R")->setCaption( i18n("Series Resistance") ); -// property("R")->setUnit( QChar(0x3a9) ); +// property("R")->setUnit( TQChar(0x3a9) ); // property("R")->setMinValue(1e-5); // property("R")->setMaxValue(1e0); // property("R")->setValue( ds.R ); @@ -98,17 +98,17 @@ void ECDiode::dataChanged() } -void ECDiode::drawShape( QPainter & p ) +void ECDiode::drawShape( TQPainter & p ) { initPainter(p); int _x = int(x()); int _y = int(y()); - QPointArray pa(3); - pa[0] = QPoint( 8, 0 ); - pa[1] = QPoint( -8, -8 ); - pa[2] = QPoint( -8, 8 ); + TQPointArray pa(3); + pa[0] = TQPoint( 8, 0 ); + pa[1] = TQPoint( -8, -8 ); + pa[2] = TQPoint( -8, 8 ); pa.translate( _x, _y ); p.drawPolygon(pa); p.drawPolyline(pa); |