summaryrefslogtreecommitdiffstats
path: root/src/flowparts/unary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flowparts/unary.cpp')
-rw-r--r--src/flowparts/unary.cpp12
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";