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/ecresistor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/electronics/components/ecresistor.cpp') diff --git a/src/electronics/components/ecresistor.cpp b/src/electronics/components/ecresistor.cpp index e4ee7a3..e03be7b 100644 --- a/src/electronics/components/ecresistor.cpp +++ b/src/electronics/components/ecresistor.cpp @@ -14,7 +14,7 @@ #include "resistance.h" #include -#include +#include Item* ECResistor::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -45,11 +45,11 @@ ECResistor::ECResistor( ICNDocument *icnDocument, bool newItem, const char *id ) createProperty( "resistance", Variant::Type::Double ); property("resistance")->setCaption( i18n("Resistance") ); - property("resistance")->setUnit( QChar(0x3a9) ); + property("resistance")->setUnit( TQChar(0x3a9) ); property("resistance")->setValue(1e4); property("resistance")->setMinValue(1e-6); - addDisplayText( "res", QRect( -16, -22, 32, 12 ), "", false ); + addDisplayText( "res", TQRect( -16, -22, 32, 12 ), "", false ); } ECResistor::~ECResistor() @@ -60,13 +60,13 @@ void ECResistor::dataChanged() { double resistance = dataDouble("resistance"); - QString display = QString::number( resistance / getMultiplier(resistance), 'g', 3 ) + getNumberMag(resistance) + QChar(0x3a9); + TQString display = TQString::number( resistance / getMultiplier(resistance), 'g', 3 ) + getNumberMag(resistance) + TQChar(0x3a9); setDisplayText( "res", display ); m_resistance->setResistance(resistance); } -void ECResistor::drawShape( QPainter &p ) +void ECResistor::drawShape( TQPainter &p ) { initPainter(p); p.drawRect( (int)x()-16, (int)y()-6, width(), 12 ); -- cgit v1.2.1