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/flowparts/testpin.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/flowparts/testpin.cpp') diff --git a/src/flowparts/testpin.cpp b/src/flowparts/testpin.cpp index 85fdb37..05f0a97 100644 --- a/src/flowparts/testpin.cpp +++ b/src/flowparts/testpin.cpp @@ -23,7 +23,7 @@ Item* TestPin::construct( ItemDocument *itemDocument, bool newItem, const char * LibraryItem* TestPin::libraryItem() { return new LibraryItem( - QString("flow/testpin"), + TQString("flow/testpin"), i18n("Test Pin State"), i18n("I\\/O"), "pinread.png", @@ -45,8 +45,8 @@ TestPin::TestPin( ICNDocument *icnDocument, bool newItem, const char *id ) property("pin")->setCaption( i18n("Pin") ); property("pin")->setValue("RA0"); - addDisplayText( "output_false", QRect( offsetX()+width(), 2, 40, 20 ), "Low" ); - addDisplayText( "output_true", QRect( 0, offsetY()+height(), 50, 20 ), "High" ); + addDisplayText( "output_false", TQRect( offsetX()+width(), 2, 40, 20 ), "Low" ); + addDisplayText( "output_true", TQRect( 0, offsetY()+height(), 50, 20 ), "High" ); } @@ -63,14 +63,14 @@ void TestPin::dataChanged() void TestPin::generateMicrobe( FlowCode *code ) { - const QString pin = dataString("pin"); - const QString port = "PORT" + QString((QChar)pin[1]); - const QString bit = (QChar)pin[2]; + const TQString pin = dataString("pin"); + const TQString port = "PORT" + TQString((TQChar)pin[1]); + const TQString bit = (TQChar)pin[2]; handleIfElse( code, port+"."+bit+" is high", port+"."+bit+" is low", "stdoutput", "altoutput" ); #if 0 - QString newCode; + TQString newCode; newCode += "btfss "+port+","+bit+" ; Check if pin is clear\n"; newCode += gotoCode("altoutput") + " ; Pin is low\n"; -- cgit v1.2.1