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/mpc/mpc_compile.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/mpc/mpc_compile.cpp')
-rw-r--r-- | src/tools/mpc/mpc_compile.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tools/mpc/mpc_compile.cpp b/src/tools/mpc/mpc_compile.cpp index 69ee994..8c39e3c 100644 --- a/src/tools/mpc/mpc_compile.cpp +++ b/src/tools/mpc/mpc_compile.cpp @@ -13,22 +13,22 @@ #include "devices/list/device_list.h" #include "devices/pic/base/pic.h" -QStringList MPC::CompileFile::genericArguments(const Compile::Config &) const +TQStringList MPC::CompileFile::genericArguments(const Compile::Config &) const { - QStringList args; + TQStringList args; args += "%I"; return args; } -void MPC::CompileFile::logStderrLine(const QString &) +void MPC::CompileFile::logStderrLine(const TQString &) { // ignore output } -void MPC::CompileFile::parseLine(const QString &line) +void MPC::CompileFile::parseLine(const TQString &line) { if ( parseErrorLine(line, Compile::ParseErrorData("(\\w+)\\s+(.*)\\s+(\\d+):\\d+:(.*)", 2, 3, 4, 1)) ) return; - doLog(Log::LineType::Normal, line, QString::null, 0); // unrecognized + doLog(Log::LineType::Normal, line, TQString(), 0); // unrecognized } void MPC::CompileFile::done(int code) @@ -37,15 +37,15 @@ void MPC::CompileFile::done(int code) PURL::Url url = PURL::Url(directory(), inputFilepath(0)).toExtension("err"); Log::StringView sview; PURL::File file(url, sview); - if ( !file.openForRead() ) doLog(Log::LineType::Error, i18n("Could not find error file (%1).").arg(url.pretty()), QString::null, 0); + if ( !file.openForRead() ) doLog(Log::LineType::Error, i18n("Could not find error file (%1).").tqarg(url.pretty()), TQString(), 0); else { - QStringList lines = file.readLines(); + TQStringList lines = file.readLines(); for (uint i=0; i<lines.count(); i++) parseLine(lines[i]); } Compile::Process::done(code); } -QString MPC::CompileFile::outputFiles() const +TQString MPC::CompileFile::outputFiles() const { return "PURL::Lst PURL::Hex PURL::Cod err"; } |