summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/eccurrentsource.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/eccurrentsource.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/eccurrentsource.cpp')
-rw-r--r--src/electronics/components/eccurrentsource.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/electronics/components/eccurrentsource.cpp b/src/electronics/components/eccurrentsource.cpp
index 76ecf3e..6184ef1 100644
--- a/src/electronics/components/eccurrentsource.cpp
+++ b/src/electronics/components/eccurrentsource.cpp
@@ -16,7 +16,7 @@
#include "pin.h"
#include <klocale.h>
-#include <qpainter.h>
+#include <tqpainter.h>
Item* ECCurrentSource::construct( ItemDocument *itemDocument, bool newItem, const char *id )
{
@@ -26,7 +26,7 @@ Item* ECCurrentSource::construct( ItemDocument *itemDocument, bool newItem, cons
LibraryItem* ECCurrentSource::libraryItem()
{
return new LibraryItem(
- QString::QString("ec/current_source"),
+ TQString::TQString("ec/current_source"),
i18n("Current Source"),
i18n("Sources"),
"current_source.png",
@@ -54,7 +54,7 @@ ECCurrentSource::ECCurrentSource( ICNDocument *icnDocument, bool newItem, const
property("current")->setMaxValue(1e12);
property("current")->setValue(0.02);
- addDisplayText("current", QRect( -16, -16, 24, 0 ), "" );
+ addDisplayText("current", TQRect( -16, -16, 24, 0 ), "" );
}
@@ -67,11 +67,11 @@ void ECCurrentSource::dataChanged()
double current = dataDouble("current");
m_currentSource->setCurrent(current);
- QString display = QString::number( current / getMultiplier(current), 'g', 3 ) + getNumberMag(current) + "A";
+ TQString display = TQString::number( current / getMultiplier(current), 'g', 3 ) + getNumberMag(current) + "A";
setDisplayText("current", display );
}
-void ECCurrentSource::drawShape( QPainter &p )
+void ECCurrentSource::drawShape( TQPainter &p )
{
initPainter(p);