diff options
Diffstat (limited to 'src/electronics/components/eccapacitor.cpp')
-rw-r--r-- | src/electronics/components/eccapacitor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/electronics/components/eccapacitor.cpp b/src/electronics/components/eccapacitor.cpp index 76a09b0..c951291 100644 --- a/src/electronics/components/eccapacitor.cpp +++ b/src/electronics/components/eccapacitor.cpp @@ -14,7 +14,7 @@ #include "libraryitem.h" #include <klocale.h> -#include <qpainter.h> +#include <tqpainter.h> Item* ECCapacitor::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -53,7 +53,7 @@ ECCapacitor::ECCapacitor( ICNDocument *icnDocument, bool newItem, const char *id property("Capacitance")->setMaxValue(1e12); property("Capacitance")->setValue(1e-3); - addDisplayText( "capacitance", QRect( -8, -24, 16, 16 ), "", false ); + addDisplayText( "capacitance", TQRect( -8, -24, 16, 16 ), "", false ); } ECCapacitor::~ECCapacitor() @@ -64,20 +64,20 @@ void ECCapacitor::dataChanged() { double capacitance = dataDouble("Capacitance"); - QString display = QString::number( capacitance / getMultiplier(capacitance), 'g', 3 ) + getNumberMag(capacitance) + "F"; + TQString display = TQString::number( capacitance / getMultiplier(capacitance), 'g', 3 ) + getNumberMag(capacitance) + "F"; setDisplayText( "capacitance", display ); m_capacitance->setCapacitance(capacitance); } -void ECCapacitor::drawShape( QPainter &p ) +void ECCapacitor::drawShape( TQPainter &p ) { initPainter(p); int _y = (int)y()-8; int _x = (int)x()-8; - QPen pen; + TQPen pen; pen.setWidth(1); pen.setColor( p.pen().color() ); p.setPen(pen); |