diff options
Diffstat (limited to 'src/flowparts/testpin.cpp')
-rw-r--r-- | src/flowparts/testpin.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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"; |