summaryrefslogtreecommitdiffstats
path: root/src/flowparts/setpin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flowparts/setpin.cpp')
-rw-r--r--src/flowparts/setpin.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/flowparts/setpin.cpp b/src/flowparts/setpin.cpp
index b92ac8d..81c29ca 100644
--- a/src/flowparts/setpin.cpp
+++ b/src/flowparts/setpin.cpp
@@ -26,7 +26,7 @@ Item* SetPin::construct( ItemDocument *itemDocument, bool newItem, const char *i
LibraryItem* SetPin::libraryItem()
{
return new LibraryItem(
- QString("flow/setpin"),
+ TQString("flow/setpin"),
i18n("Set Pin State"),
i18n("I\\/O"),
"pinwrite.png",
@@ -45,7 +45,7 @@ SetPin::SetPin( ICNDocument *icnDocument, bool newItem, const char *id )
createProperty( "state", Variant::Type::Select );
property("state")->setCaption( i18n("State") );
- property("state")->setAllowed( QStringList::split( ',', "high,low" ) );
+ property("state")->setAllowed( TQStringList::split( ',', "high,low" ) );
property("state")->setValue("high");
createProperty( "pin", Variant::Type::Pin );
@@ -59,24 +59,24 @@ SetPin::~SetPin()
void SetPin::dataChanged()
{
- setCaption( i18n("Set %1 %2").arg(dataString("pin")).arg(dataString("state")) );
+ setCaption( i18n("Set %1 %2").tqarg(dataString("pin")).tqarg(dataString("state")) );
}
void SetPin::generateMicrobe( FlowCode *code )
{
- const QString pin = dataString("pin");
- const QString port = "PORT" + QString((QChar)pin[1]);
- const QString bit = (QChar)pin[2];
+ const TQString pin = dataString("pin");
+ const TQString port = "PORT" + TQString((TQChar)pin[1]);
+ const TQString bit = (TQChar)pin[2];
code->addCode( port+"."+bit+" = "+dataString("state") );
code->addCodeBranch( outputPart("stdoutput") );
#if 0
- const QString pin = dataString("pin");
+ const TQString pin = dataString("pin");
const bool isHigh = (dataString("state") == "High");
- const QString port = "PORT" + QString((QChar)pin[1]);
- const QString bit = (QChar)pin[2];
+ const TQString port = "PORT" + TQString((TQChar)pin[1]);
+ const TQString bit = (TQChar)pin[2];
- QString newCode;
+ TQString newCode;
if (isHigh)
{
newCode += "bsf " + port + "," + bit + " ; Set bit high\n";