summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/ecclockinput.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/electronics/components/ecclockinput.cpp
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
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
Diffstat (limited to 'src/electronics/components/ecclockinput.cpp')
-rw-r--r--src/electronics/components/ecclockinput.cpp10
1 files changed, 5 insertions, 5 deletions
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 <klocale.h>
-#include <qpainter.h>
+#include <tqpainter.h>
#include <cmath>
@@ -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);