summaryrefslogtreecommitdiffstats
path: root/src/flowparts/varcomparison.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/flowparts/varcomparison.cpp
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-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/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