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/ecclockinput.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/electronics/components/ecclockinput.cpp') diff --git a/src/electronics/components/ecclockinput.cpp b/src/electronics/components/ecclockinput.cpp index 7f1ec9c..7d3d608 100644 --- a/src/electronics/components/ecclockinput.cpp +++ b/src/electronics/components/ecclockinput.cpp @@ -15,7 +15,7 @@ #include "simulator.h" #include -#include +#include #include @@ -32,7 +32,7 @@ Item* ECClockInput::construct( ItemDocument *itemDocument, bool newItem, const c LibraryItem* ECClockInput::libraryItem() { return new LibraryItem( - QString("ec/clock_input"), + TQString("ec/clock_input"), i18n("Clock Input"), i18n("Logic"), "clockinput.png", @@ -76,7 +76,7 @@ ECClockInput::ECClockInput( ICNDocument *icnDocument, bool newItem, const char * property("high-time")->setMinValue(1.0/LOGIC_UPDATE_RATE); property("high-time")->setValue(0.5); - addDisplayText( "freq", QRect( -16, -24, 32, 14 ), "", false ); + addDisplayText( "freq", TQRect( -16, -24, 32, 14 ), "", false ); } @@ -97,7 +97,7 @@ void ECClockInput::dataChanged() m_period = m_low_time+m_high_time; const double frequency = 1./(dataDouble("high-time")+dataDouble("low-time")); - QString display = QString::number( frequency / getMultiplier(frequency), 'g', 3 ) + getNumberMag(frequency) + "Hz"; + TQString display = TQString::number( frequency / getMultiplier(frequency), 'g', 3 ) + getNumberMag(frequency) + "Hz"; setDisplayText( "freq", display ); bool setStepCallbacks = m_period > 100; @@ -159,7 +159,7 @@ void ECClockInput::stepNonLogic() } -void ECClockInput::drawShape( QPainter &p ) +void ECClockInput::drawShape( TQPainter &p ) { initPainter(p); -- cgit v1.2.3