summaryrefslogtreecommitdiffstats
path: root/src/languages/externallanguage.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/externallanguage.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/externallanguage.cpp')
-rw-r--r--src/languages/externallanguage.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/languages/externallanguage.cpp b/src/languages/externallanguage.cpp
index 7297e63..233c639 100644
--- a/src/languages/externallanguage.cpp
+++ b/src/languages/externallanguage.cpp
@@ -14,11 +14,11 @@
#include <kdebug.h>
#include <kprocess.h>
-#include <qregexp.h>
-#include <qtimer.h>
+#include <tqregexp.h>
+#include <tqtimer.h>
-ExternalLanguage::ExternalLanguage( ProcessChain *processChain, KTechlab *parent, const QString &name )
- : Language( processChain, parent, name )
+ExternalLanguage::ExternalLanguage( ProcessChain *processChain, KTechlab *tqparent, const TQString &name )
+ : Language( processChain, tqparent, name )
{
m_languageProcess = 0l;
}
@@ -37,7 +37,7 @@ void ExternalLanguage::deleteLanguageProcess()
// I'm not too sure if this combination of killing the process is the best way....
// m_languageProcess->tryTerminate();
-// QTimer::singleShot( 5000, m_languageProcess, SLOT( kill() ) );
+// TQTimer::singleShot( 5000, m_languageProcess, TQT_SLOT( kill() ) );
// delete m_languageProcess;
m_languageProcess->kill();
m_languageProcess->deleteLater();
@@ -48,10 +48,10 @@ void ExternalLanguage::deleteLanguageProcess()
void ExternalLanguage::receivedStdout( KProcess *, char * buffer, int buflen )
{
- QStringList lines = QStringList::split( '\n', QString::fromLocal8Bit( buffer, buflen ), false );
- QStringList::iterator end = lines.end();
+ TQStringList lines = TQStringList::split( '\n', TQString::fromLocal8Bit( buffer, buflen ), false );
+ TQStringList::iterator end = lines.end();
- for ( QStringList::iterator it = lines.begin(); it != end; ++it )
+ for ( TQStringList::iterator it = lines.begin(); it != end; ++it )
{
if ( isError( *it ) )
{
@@ -74,10 +74,10 @@ void ExternalLanguage::receivedStdout( KProcess *, char * buffer, int buflen )
void ExternalLanguage::receivedStderr( KProcess *, char * buffer, int buflen )
{
- QStringList lines = QStringList::split( '\n', QString::fromLocal8Bit( buffer, buflen ), false );
- QStringList::iterator end = lines.end();
+ TQStringList lines = TQStringList::split( '\n', TQString::fromLocal8Bit( buffer, buflen ), false );
+ TQStringList::iterator end = lines.end();
- for ( QStringList::iterator it = lines.begin(); it != end; ++it )
+ for ( TQStringList::iterator it = lines.begin(); it != end; ++it )
{
if ( isStderrOutputFatal( *it ) )
{
@@ -126,32 +126,32 @@ void ExternalLanguage::resetLanguageProcess()
m_languageProcess = new KProcess(this);
- connect( m_languageProcess, SIGNAL(receivedStdout( KProcess*, char*, int )),
- this, SLOT(receivedStdout( KProcess*, char*, int )) );
+ connect( m_languageProcess, TQT_SIGNAL(receivedStdout( KProcess*, char*, int )),
+ this, TQT_SLOT(receivedStdout( KProcess*, char*, int )) );
- connect( m_languageProcess, SIGNAL(receivedStderr( KProcess*, char*, int )),
- this, SLOT(receivedStderr( KProcess*, char*, int )) );
+ connect( m_languageProcess, TQT_SIGNAL(receivedStderr( KProcess*, char*, int )),
+ this, TQT_SLOT(receivedStderr( KProcess*, char*, int )) );
- connect( m_languageProcess, SIGNAL(processExited( KProcess* )),
- this, SLOT(processExited( KProcess* )) );
+ connect( m_languageProcess, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(processExited( KProcess* )) );
}
void ExternalLanguage::displayProcessCommand()
{
- QStringList quotedArguments;
- QValueList<QCString> arguments = m_languageProcess->args();
+ TQStringList quotedArguments;
+ TQValueList<TQCString> arguments = m_languageProcess->args();
if ( arguments.size() == 1 )
quotedArguments << arguments[0];
else
{
- QValueList<QCString>::const_iterator end = arguments.end();
+ TQValueList<TQCString>::const_iterator end = arguments.end();
- for ( QValueList<QCString>::const_iterator it = arguments.begin(); it != end; ++it )
+ for ( TQValueList<TQCString>::const_iterator it = arguments.begin(); it != end; ++it )
{
- if ( (*it).isEmpty() || (*it).contains( QRegExp("[\\s]") ) )
+ if ( (*it).isEmpty() || (*it).tqcontains( TQRegExp("[\\s]") ) )
quotedArguments << KProcess::quote( *it );
else
quotedArguments << *it;