summaryrefslogtreecommitdiffstats
path: root/src/languages/sdcc.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/languages/sdcc.cpp
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-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/languages/sdcc.cpp')
-rw-r--r--src/languages/sdcc.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/languages/sdcc.cpp b/src/languages/sdcc.cpp
index 553e974..881db33 100644
--- a/src/languages/sdcc.cpp
+++ b/src/languages/sdcc.cpp
@@ -20,8 +20,8 @@
#include <kmessagebox.h>
#include <kprocess.h>
-SDCC::SDCC( ProcessChain * processChain, KTechlab * parent )
- : ExternalLanguage( processChain, parent, "SDCC" )
+SDCC::SDCC( ProcessChain * processChain, KTechlab * tqparent )
+ : ExternalLanguage( processChain, tqparent, "SDCC" )
{
m_successfulMessage = i18n("*** Compilation successful ***");
m_failedMessage = i18n("*** Compilation failed ***");
@@ -40,7 +40,7 @@ void SDCC::processInput( ProcessOptions options )
MicroInfo * info = MicroLibrary::self()->microInfoWithID( options.m_picID );
if (!info)
{
- outputError( i18n("Could not find PIC with ID \"%1\".").arg(options.m_picID) );
+ outputError( i18n("Could not find PIC with ID \"%1\".").tqarg(options.m_picID) );
return;
}
@@ -50,7 +50,7 @@ void SDCC::processInput( ProcessOptions options )
//BEGIN Pass custom sdcc options
-#define ARG(text,option) if ( KTLConfig::text() ) *m_languageProcess << ( QString("--%1").arg(option) );
+#define ARG(text,option) if ( KTLConfig::text() ) *m_languageProcess << ( TQString("--%1").tqarg(option) );
// General
ARG( sDCC_nostdlib, "nostdlib" )
ARG( sDCC_nostdinc, "nostdinc" )
@@ -103,7 +103,7 @@ void SDCC::processInput( ProcessOptions options )
*m_languageProcess << ("--debug"); // Enable debugging symbol output
*m_languageProcess << ("-S"); // Compile only; do not assemble or link
- QString asmSwitch;
+ TQString asmSwitch;
switch ( info->instructionSet()->set() )
{
case AsmInfo::PIC12:
@@ -136,13 +136,13 @@ void SDCC::processInput( ProcessOptions options )
}
-bool SDCC::isError( const QString &message ) const
+bool SDCC::isError( const TQString &message ) const
{
return false;
}
-bool SDCC::isStderrOutputFatal( const QString & message ) const
+bool SDCC::isStderrOutputFatal( const TQString & message ) const
{
if ( message.startsWith("Processor:") )
return false;
@@ -151,7 +151,7 @@ bool SDCC::isStderrOutputFatal( const QString & message ) const
}
-bool SDCC::isWarning( const QString &message ) const
+bool SDCC::isWarning( const TQString &message ) const
{
return false;
}