diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/flowparts/count.cpp | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-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/count.cpp')
-rw-r--r-- | src/flowparts/count.cpp | 8 |
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") ); } |