summaryrefslogtreecommitdiffstats
path: root/src/flowparts/pulse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flowparts/pulse.cpp')
-rw-r--r--src/flowparts/pulse.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flowparts/pulse.cpp b/src/flowparts/pulse.cpp
index 2037d2f..4851abe 100644
--- a/src/flowparts/pulse.cpp
+++ b/src/flowparts/pulse.cpp
@@ -22,7 +22,7 @@ Item* Pulse::construct( ItemDocument *itemDocument, bool newItem, const char *id
LibraryItem* Pulse::libraryItem()
{
return new LibraryItem(
- QString::QString("flow/pulse"),
+ TQString::TQString("flow/pulse"),
i18n("Pulse"),
i18n("Functions"),
"pppulse.png",
@@ -68,7 +68,7 @@ Pulse::~Pulse()
void Pulse::dataChanged()
{
double pulse = dataDouble("0-duration");
- setCaption( i18n("Pulse %1 for %2 sec").arg(dataString("3-pin")).arg(QString::number( pulse / getMultiplier(pulse), 'f', 1 ) + getNumberMag(pulse)) );
+ setCaption( i18n("Pulse %1 for %2 sec").tqarg(dataString("3-pin")).tqarg(TQString::number( pulse / getMultiplier(pulse), 'f', 1 ) + getNumberMag(pulse)) );
}
void Pulse::generateMicrobe( FlowCode *code )
@@ -76,10 +76,10 @@ void Pulse::generateMicrobe( FlowCode *code )
const double duration_ms = dataDouble("0-duration")*1e3;
const double high_ms = dataDouble("1-high")*1e3;
const double low_ms = dataDouble("2-low")*1e3;
- const QString pin = dataString("3-pin");
+ const TQString pin = dataString("3-pin");
// TODO Do we want to change the format for pulsing?
- code->addCode( "pulse "+pin+" "+QString::number(duration_ms)+" "+QString::number(high_ms)+" "+QString::number(low_ms) );
+ code->addCode( "pulse "+pin+" "+TQString::number(duration_ms)+" "+TQString::number(high_ms)+" "+TQString::number(low_ms) );
code->addCodeBranch( outputPart("stdoutput") );
}