summaryrefslogtreecommitdiffstats
path: root/src/flowparts/varcomparison.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flowparts/varcomparison.cpp')
-rw-r--r--src/flowparts/varcomparison.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/flowparts/varcomparison.cpp b/src/flowparts/varcomparison.cpp
index e01ebf2..30eff19 100644
--- a/src/flowparts/varcomparison.cpp
+++ b/src/flowparts/varcomparison.cpp
@@ -23,7 +23,7 @@ Item* VarComparison::construct( ItemDocument *itemDocument, bool newItem, const
LibraryItem* VarComparison::libraryItem()
{
return new LibraryItem(
- QString("flow/varcomparison"),
+ TQString("flow/varcomparison"),
i18n("Comparison"),
i18n("Variables"),
"branch.png",
@@ -46,7 +46,7 @@ VarComparison::VarComparison( ICNDocument *icnDocument, bool newItem, const char
property("0var1")->setValue("x");
createProperty( "1op", Variant::Type::Select );
- property("1op")->setAllowed( QStringList::split( ',', "==,<,>,<=,>=,!=" ) );
+ property("1op")->setAllowed( TQStringList::split( ',', "==,<,>,<=,>=,!=" ) );
property("1op")->setValue("==");
property("1op")->setToolbarCaption(" ");
property("1op")->setEditorCaption( i18n("Operation") );
@@ -56,8 +56,8 @@ VarComparison::VarComparison( ICNDocument *icnDocument, bool newItem, const char
property("2var2")->setEditorCaption( i18n("Value") );
property("2var2")->setValue("0");
- addDisplayText( "output_false", QRect( offsetX()+width(), 2, 40, 20 ), "No" );
- addDisplayText( "output_true", QRect( 0, offsetY()+height(), 50, 20 ), "Yes" );
+ addDisplayText( "output_false", TQRect( offsetX()+width(), 2, 40, 20 ), "No" );
+ addDisplayText( "output_true", TQRect( 0, offsetY()+height(), 50, 20 ), "Yes" );
}
VarComparison::~VarComparison()
@@ -69,7 +69,7 @@ void VarComparison::dataChanged()
setCaption( dataString("0var1") + " " + dataString("1op") + " " + dataString("2var2") + " ?" );
}
-QString VarComparison::oppOp( const QString &op )
+TQString VarComparison::oppOp( const TQString &op )
{
if ( op == "==" ) return "!=";
if ( op == "!=" ) return "==";
@@ -82,9 +82,9 @@ QString VarComparison::oppOp( const QString &op )
void VarComparison::generateMicrobe( FlowCode *code )
{
- QString var1 = dataString("0var1");
- QString var2 = dataString("2var2");
- QString test = dataString("1op");
+ TQString var1 = dataString("0var1");
+ TQString var2 = dataString("2var2");
+ TQString test = dataString("1op");
handleIfElse( code, var1+" "+test+" "+var2, var1+" "+oppOp(test)+" "+var2, "stdoutput", "altoutput" );
@@ -101,7 +101,7 @@ void VarComparison::generateMicrobe( FlowCode *code )
#endif
#if 0
- QString newCode;
+ TQString newCode;
if ( FlowCode::isLiteral(var2) ) newCode += "movlw " + var2 + " ; Move literal to register w\n";
else