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/inductor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/electronics/components/inductor.cpp') diff --git a/src/electronics/components/inductor.cpp b/src/electronics/components/inductor.cpp index 9e30b34..5949a3b 100644 --- a/src/electronics/components/inductor.cpp +++ b/src/electronics/components/inductor.cpp @@ -13,7 +13,7 @@ #include "libraryitem.h" #include -#include +#include Item* Inductor::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -52,7 +52,7 @@ Inductor::Inductor( ICNDocument *icnDocument, bool newItem, const char *id ) property("Inductance")->setMaxValue(1e12); property("Inductance")->setValue(1e-3); - addDisplayText( "inductance", QRect( -8, -24, 16, 16 ), "", false ); + addDisplayText( "inductance", TQRect( -8, -24, 16, 16 ), "", false ); } Inductor::~Inductor() @@ -63,13 +63,13 @@ void Inductor::dataChanged() { double inductance = dataDouble("Inductance"); - QString display = QString::number( inductance / getMultiplier(inductance), 'g', 3 ) + getNumberMag(inductance) + "H"; + TQString display = TQString::number( inductance / getMultiplier(inductance), 'g', 3 ) + getNumberMag(inductance) + "H"; setDisplayText( "inductance", display ); m_pInductance->setInductance(inductance); } -void Inductor::drawShape( QPainter &p ) +void Inductor::drawShape( TQPainter &p ) { initPainter(p); int _y = int(y()); -- cgit v1.2.3