summaryrefslogtreecommitdiffstats
path: root/src/tools/pic30/pic30_generator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/tools/pic30/pic30_generator.cpp
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-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/pic30/pic30_generator.cpp')
-rw-r--r--src/tools/pic30/pic30_generator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/pic30/pic30_generator.cpp b/src/tools/pic30/pic30_generator.cpp
index fe874e3..119c466 100644
--- a/src/tools/pic30/pic30_generator.cpp
+++ b/src/tools/pic30/pic30_generator.cpp
@@ -18,9 +18,9 @@ SourceLine::List PIC30::SourceGenerator::configLines(PURL::ToolType type, const
SourceLine::List lines;
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;
+ TQString code;
if ( type==PURL::ToolType::Assembler ) code += "config __" + cword.name + ", ";
else code += "_" + cword.name + "(";
code += cnames.join(" & ");
@@ -76,7 +76,7 @@ SourceLine::List PIC30::SourceGenerator::sourceFileContent(PURL::ToolType type,
lines.appendIndentedCode("NOP", i18n("nop after SPLIM initialization"));
lines.appendIndentedCode("CALL _wreg_init", i18n("call _wreg_init subroutine"));
lines.appendEmpty();
- lines.appendIndentedCode(QString::null, "<<" + i18n("insert code") + ">>");
+ lines.appendIndentedCode(TQString(), "<<" + i18n("insert code") + ">>");
lines.appendEmpty();
lines.appendNotIndentedCode("done:");
lines.appendIndentedCode("BRA done", i18n("loop forever"));
@@ -95,7 +95,7 @@ SourceLine::List PIC30::SourceGenerator::sourceFileContent(PURL::ToolType type,
lines.appendTitle(i18n("Timer1 interrupt service routine"));
lines.appendNotIndentedCode("__T1Interrupt:");
lines.appendIndentedCode("PUSH.D W4", i18n("example of context saving (push W4 and W5)"));
- lines.appendIndentedCode(QString::null, "<<" + i18n("insert interrupt code") + ">>");
+ lines.appendIndentedCode(TQString(), "<<" + i18n("insert interrupt code") + ">>");
lines.appendIndentedCode("BCLR IFS0, #T1IF", i18n("clear Timer1 interrupt flag status bit"));
lines.appendIndentedCode("POP.D W4", i18n("restore context from stack"));
lines.appendIndentedCode("RETFIE");