diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/tools/boost/boost_generator.cpp | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip |
TQt4 port piklab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/tools/boost/boost_generator.cpp')
-rw-r--r-- | src/tools/boost/boost_generator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/boost/boost_generator.cpp b/src/tools/boost/boost_generator.cpp index 2fa1393..0d204ad 100644 --- a/src/tools/boost/boost_generator.cpp +++ b/src/tools/boost/boost_generator.cpp @@ -20,9 +20,9 @@ SourceLine::List Boost::CSourceGenerator::configLines(PURL::ToolType, const Devi Address address = data.range(Pic::MemoryRangeType::Config).start; for (uint i=0; i<data.nbWords(Pic::MemoryRangeType::Config); i++) { const Pic::Config::Word &cword = config._words[i]; - QStringList cnames = SourceLine::configNames(Pic::ConfigNameType::Default, pmemory, i, ok); + TQStringList cnames = SourceLine::configNames(Pic::ConfigNameType::Default, pmemory, i, ok); if ( cnames.isEmpty() ) continue; - QString code = "#pragma DATA "; + TQString code = "#pragma DATA "; if ( cword.name.isEmpty() ) code += toHexLabel(address, data.nbCharsAddress()); else code += "__" + cword.name; code += cnames.join(" & ") + ";"; @@ -44,12 +44,12 @@ SourceLine::List Boost::CSourceGenerator::sourceFileContent(PURL::ToolType, cons SourceLine::List lines; lines.appendTitle(i18n("interrupt service routine")); lines.appendNotIndentedCode("void interrupt(void) {"); - lines.appendIndentedCode(QString::null, "<< " + i18n("insert interrupt code") + " >>"); + lines.appendIndentedCode(TQString(), "<< " + i18n("insert interrupt code") + " >>"); lines.appendNotIndentedCode("}"); lines.appendEmpty(); lines.appendTitle(i18n("main program")); lines.appendNotIndentedCode("void main() {"); - lines.appendIndentedCode(QString::null, "<< " + i18n("insert code") + " >>"); + lines.appendIndentedCode(TQString(), "<< " + i18n("insert code") + " >>"); lines.appendNotIndentedCode("}"); return lines; } @@ -73,7 +73,7 @@ SourceLine::List Boost::BasicSourceGenerator::sourceFileContent(PURL::ToolType, ok = true; lines.appendTitle(i18n("main program")); lines.appendNotIndentedCode("Sub main()"); - lines.appendIndentedCode(QString::null, "<< " + i18n("insert code") + " >>"); + lines.appendIndentedCode(TQString(), "<< " + i18n("insert code") + " >>"); lines.appendIndentedCode("Do while 1", i18n("loop forever")); lines.appendIndentedCode("Loop"); lines.appendNotIndentedCode("End Sub"); |