diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/flowparts/writeport.cpp | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-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/flowparts/writeport.cpp')
-rw-r--r-- | src/flowparts/writeport.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/flowparts/writeport.cpp b/src/flowparts/writeport.cpp index dede6f1..312ea01 100644 --- a/src/flowparts/writeport.cpp +++ b/src/flowparts/writeport.cpp @@ -23,7 +23,7 @@ Item* WritePort::construct( ItemDocument *itemDocument, bool newItem, const char LibraryItem* WritePort::libraryItem() { return new LibraryItem( - QString("flow/writeport"), + TQString("flow/writeport"), i18n("Write to Port"), i18n("I\\/O"), "portwrite.png", @@ -59,7 +59,7 @@ WritePort::~WritePort() void WritePort::dataChanged() { - setCaption( i18n("Write %1 to %2").arg(dataString("0-var")).arg(dataString("1-port")) ); + setCaption( i18n("Write %1 to %2").tqarg(dataString("0-var")).tqarg(dataString("1-port")) ); } @@ -69,12 +69,12 @@ void WritePort::generateMicrobe( FlowCode *code ) code->addCodeBranch( outputPart("stdoutput") ); #if 0 - QString var = dataString("var"); - QString port = dataString("port"); + TQString var = dataString("var"); + TQString port = dataString("port"); // WTF? I don't want to do this! -// QString newCode = "bsf STATUS,5 ; Move to bank 1\n"; - QString newCode; +// TQString newCode = "bsf STATUS,5 ; Move to bank 1\n"; + TQString newCode; if ( FlowCode::isLiteral(var) ) newCode += "movlw " + var + " ; Move " + var + " to working register w\n"; else |