From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: TQt4 port ktechlab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/electronics/components/ecvoltagesource.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/electronics/components/ecvoltagesource.cpp') diff --git a/src/electronics/components/ecvoltagesource.cpp b/src/electronics/components/ecvoltagesource.cpp index 4b8c543..9090b3b 100644 --- a/src/electronics/components/ecvoltagesource.cpp +++ b/src/electronics/components/ecvoltagesource.cpp @@ -16,7 +16,7 @@ #include "pin.h" #include -#include +#include const double conductance = 1e5; // Internal resistance @@ -27,7 +27,7 @@ Item* ECCell::construct( ItemDocument *itemDocument, bool newItem, const char *i LibraryItem* ECCell::libraryItem() { - QStringList ids; + TQStringList ids; ids << "ec/battery" << "ec/cell"; return new LibraryItem( ids, @@ -59,7 +59,7 @@ ECCell::ECCell( ICNDocument *icnDocument, bool newItem, const char *id ) property("voltage")->setMaxValue(1e12); property("voltage")->setValue(5.0); - addDisplayText( "voltage", QRect( -16, -24, 32, 16 ), "" ); + addDisplayText( "voltage", TQRect( -16, -24, 32, 16 ), "" ); } ECCell::~ECCell() @@ -71,11 +71,11 @@ void ECCell::dataChanged() voltage = dataDouble("voltage"); m_voltageSource->setVoltage(voltage); - QString display = QString::number( voltage / getMultiplier(voltage), 'g', 3 ) + getNumberMag(voltage) + "V"; + TQString display = TQString::number( voltage / getMultiplier(voltage), 'g', 3 ) + getNumberMag(voltage) + "V"; setDisplayText( "voltage", display ); } -void ECCell::drawShape( QPainter &p ) +void ECCell::drawShape( TQPainter &p ) { initPainter(p); -- cgit v1.2.1