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/unary.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/unary.cpp')
-rw-r--r-- | src/flowparts/unary.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/flowparts/unary.cpp b/src/flowparts/unary.cpp index fe0b549..077afc7 100644 --- a/src/flowparts/unary.cpp +++ b/src/flowparts/unary.cpp @@ -23,7 +23,7 @@ Item* Unary::construct( ItemDocument *itemDocument, bool newItem, const char *id LibraryItem* Unary::libraryItem() { return new LibraryItem( - QString("flow/unary"), + TQString("flow/unary"), i18n("Unary"), i18n("Variables"), "unary.png", @@ -46,7 +46,7 @@ Unary::Unary( ICNDocument *icnDocument, bool newItem, const char *id ) createProperty( "1-op", Variant::Type::Select ); property("1-op")->setCaption( i18n("Operation") ); - property("1-op")->setAllowed( QStringList::split( ',', "Rotate Left,Rotate Right,Increment,Decrement" ) ); + property("1-op")->setAllowed( TQStringList::split( ',', "Rotate Left,Rotate Right,Increment,Decrement" ) ); property("1-op")->setValue("Rotate Left"); } @@ -61,8 +61,8 @@ void Unary::dataChanged() void Unary::generateMicrobe( FlowCode *code ) { - const QString var = dataString("0-var"); - const QString op = dataString("1-op"); + const TQString var = dataString("0-var"); + const TQString op = dataString("1-op"); if ( op == "Rotate Left" ) code->addCode( "rotateleft "+var ); else if ( op == "Rotate Right" ) code->addCode( "rotateright "+var ); @@ -72,11 +72,11 @@ void Unary::generateMicrobe( FlowCode *code ) code->addCodeBranch( outputPart("stdoutput") ); #if 0 - QString rot = dataString("1-rot"); + TQString rot = dataString("1-rot"); if ( FlowCode::isLiteral(var) ) return; - QString newCode; + TQString newCode; code->addVariable(var); if ( rot == "Left" ) newCode += "rlf " + var + ",1 ; Unary " + var + " left through Carry, place result back in " + var + "\n"; |