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/languages/microbe.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/languages/microbe.cpp')
-rw-r--r-- | src/languages/microbe.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/languages/microbe.cpp b/src/languages/microbe.cpp index 628b3c1..b7c7f8b 100644 --- a/src/languages/microbe.cpp +++ b/src/languages/microbe.cpp @@ -19,30 +19,30 @@ #include <kmessagebox.h> #include <kstandarddirs.h> -#include <qfile.h> +#include <tqfile.h> #include <kprocess.h> -Microbe::Microbe( ProcessChain *processChain, KTechlab *parent ) - : ExternalLanguage( processChain, parent, "Microbe" ) +Microbe::Microbe( ProcessChain *processChain, KTechlab *tqparent ) + : ExternalLanguage( processChain, tqparent, "Microbe" ) { m_failedMessage = i18n("*** Compilation failed ***"); m_successfulMessage = i18n("*** Compilation successful ***"); // Setup error messages list - QFile file( locate("appdata",i18n("error_messages_en_gb")) ); + TQFile file( locate("appdata",i18n("error_messages_en_gb")) ); if ( file.open( IO_ReadOnly ) ) { - QTextStream stream( &file ); - QString line; + TQTextStream stream( &file ); + TQString line; while ( !stream.atEnd() ) { line = stream.readLine(); // line of text excluding '\n' if ( !line.isEmpty() ) { bool ok; - const int pos = line.left( line.find("#") ).toInt(&ok); + const int pos = line.left( line.tqfind("#") ).toInt(&ok); if (ok) { - m_errorMessages[pos] = line.right(line.length()-line.find("#")); + m_errorMessages[pos] = line.right(line.length()-line.tqfind("#")); } else { kdError() << k_funcinfo << "Error parsing Microbe error-message file"<<endl; } @@ -81,14 +81,14 @@ void Microbe::processInput( ProcessOptions options ) } -bool Microbe::isError( const QString &message ) const +bool Microbe::isError( const TQString &message ) const { - return message.contains( "Error", false ); + return message.tqcontains( "Error", false ); } -bool Microbe::isWarning( const QString &message ) const +bool Microbe::isWarning( const TQString &message ) const { - return message.contains( "Warning", false ); + return message.tqcontains( "Warning", false ); } |