summaryrefslogtreecommitdiffstats
path: root/src/flowparts/count.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flowparts/count.cpp')
-rw-r--r--src/flowparts/count.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flowparts/count.cpp b/src/flowparts/count.cpp
index dc0281f..190ed80 100644
--- a/src/flowparts/count.cpp
+++ b/src/flowparts/count.cpp
@@ -23,7 +23,7 @@ Item* Count::construct( ItemDocument *itemDocument, bool newItem, const char *id
LibraryItem* Count::libraryItem()
{
return new LibraryItem(
- QString::QString("flow/count"),
+ TQString::TQString("flow/count"),
i18n("Count"),
i18n("Functions"),
"ppcount.png",
@@ -41,7 +41,7 @@ Count::Count( ICNDocument *icnDocument, bool newItem, const char *id )
createStdOutput();
createProperty( "0-trigger", Variant::Type::Select );
- property("0-trigger")->setAllowed( QStringList::split(',',"rising,falling") );
+ property("0-trigger")->setAllowed( TQStringList::split(',',"rising,falling") );
property("0-triger")->setValue("rising");
property("0-trigger")->setCaption( i18n("Trigger") );
@@ -58,13 +58,13 @@ Count::~Count()
void Count::dataChanged()
{
double count = dataDouble("1-length");
- setCaption( i18n("Count %1 for %2 sec").arg(dataString("0-trigger")).arg(QString::number( count / getMultiplier(count), 'g', 3 ) + getNumberMag(count)) );
+ setCaption( i18n("Count %1 for %2 sec").tqarg(dataString("0-trigger")).tqarg(TQString::number( count / getMultiplier(count), 'g', 3 ) + getNumberMag(count)) );
}
void Count::generateMicrobe( FlowCode *code )
{
const double count_ms = dataDouble("1-length")*1e3;
- code->addCode( "count "+dataString("0-trigger")+" for "+QString::number(count_ms)+"ms" );
+ code->addCode( "count "+dataString("0-trigger")+" for "+TQString::number(count_ms)+"ms" );
code->addCodeBranch( outputPart("stdoutput") );
}