diff options
Diffstat (limited to 'src/electronics/components/eccurrentsignal.cpp')
-rw-r--r-- | src/electronics/components/eccurrentsignal.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/electronics/components/eccurrentsignal.cpp b/src/electronics/components/eccurrentsignal.cpp index e6dc351..14c632b 100644 --- a/src/electronics/components/eccurrentsignal.cpp +++ b/src/electronics/components/eccurrentsignal.cpp @@ -16,7 +16,7 @@ #include "simulator.h" #include <klocale.h> -#include <qpainter.h> +#include <tqpainter.h> Item* ECCurrentSignal::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -26,7 +26,7 @@ Item* ECCurrentSignal::construct( ItemDocument *itemDocument, bool newItem, cons LibraryItem* ECCurrentSignal::libraryItem() { return new LibraryItem( - QString("ec/ac_current"), + TQString("ec/ac_current"), i18n("Current Signal"), i18n("Sources"), "currentsignal.png", @@ -62,8 +62,8 @@ ECCurrentSignal::ECCurrentSignal( ICNDocument *icnDocument, bool newItem, const property("1-current")->setMaxValue(1e12); property("1-current")->setValue(0.02); - addDisplayText( "~", QRect( -8, -8, 16, 16 ), "~" ); - addDisplayText( "current", QRect( -16, -24, 32, 16 ), "" ); + addDisplayText( "~", TQRect( -8, -8, 16, 16 ), "~" ); + addDisplayText( "current", TQRect( -16, -24, 32, 16 ), "" ); } @@ -76,14 +76,14 @@ void ECCurrentSignal::dataChanged() const double current = dataDouble("1-current"); const double frequency = dataDouble("1-frequency"); - QString display = QString::number( current / getMultiplier(current), 'g', 3 ) + getNumberMag(current) + "A"; + TQString display = TQString::number( current / getMultiplier(current), 'g', 3 ) + getNumberMag(current) + "A"; setDisplayText( "current", display ); m_currentSignal->setStep( 1./LINEAR_UPDATE_RATE, ElementSignal::st_sinusoidal, frequency ); m_currentSignal->setCurrent(current); } -void ECCurrentSignal::drawShape( QPainter &p ) +void ECCurrentSignal::drawShape( TQPainter &p ) { initPainter(p); p.drawEllipse( (int)x()-8, (int)y()-8, width(), height() ); |