summaryrefslogtreecommitdiffstats
path: root/src/languages/microbe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/languages/microbe.cpp')
-rw-r--r--src/languages/microbe.cpp24
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 );
}