diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:25:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:25:21 -0600 |
commit | b0a967eb693adc458fdf7d070379b8c1ec3e9415 (patch) | |
tree | 69fa22da8d08920ca8b1049861711e77a55512b9 /src/languages/externallanguage.cpp | |
parent | a19dd7fc8e64bebb22b87a2d3a9a2601b662b35d (diff) | |
download | ktechlab-b0a967eb693adc458fdf7d070379b8c1ec3e9415.tar.gz ktechlab-b0a967eb693adc458fdf7d070379b8c1ec3e9415.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'src/languages/externallanguage.cpp')
-rw-r--r-- | src/languages/externallanguage.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/languages/externallanguage.cpp b/src/languages/externallanguage.cpp index 82e35aa..553e597 100644 --- a/src/languages/externallanguage.cpp +++ b/src/languages/externallanguage.cpp @@ -46,7 +46,7 @@ void ExternalLanguage::deleteLanguageProcess() } -void ExternalLanguage::receivedStdout( KProcess *, char * buffer, int buflen ) +void ExternalLanguage::receivedStdout( TDEProcess *, char * buffer, int buflen ) { TQStringList lines = TQStringList::split( '\n', TQString::fromLocal8Bit( buffer, buflen ), false ); TQStringList::iterator end = lines.end(); @@ -72,7 +72,7 @@ void ExternalLanguage::receivedStdout( KProcess *, char * buffer, int buflen ) } -void ExternalLanguage::receivedStderr( KProcess *, char * buffer, int buflen ) +void ExternalLanguage::receivedStderr( TDEProcess *, char * buffer, int buflen ) { TQStringList lines = TQStringList::split( '\n', TQString::fromLocal8Bit( buffer, buflen ), false ); TQStringList::iterator end = lines.end(); @@ -93,7 +93,7 @@ void ExternalLanguage::receivedStderr( KProcess *, char * buffer, int buflen ) } -void ExternalLanguage::processExited( KProcess * ) +void ExternalLanguage::processExited( TDEProcess * ) { if ( !m_languageProcess ) return; @@ -114,7 +114,7 @@ bool ExternalLanguage::start() { displayProcessCommand(); - return m_languageProcess->start( KProcess::NotifyOnExit, KProcess::All ); + return m_languageProcess->start( TDEProcess::NotifyOnExit, TDEProcess::All ); } @@ -124,16 +124,16 @@ void ExternalLanguage::resetLanguageProcess() deleteLanguageProcess(); m_errorCount = 0; - m_languageProcess = new KProcess(this); + m_languageProcess = new TDEProcess(this); - connect( m_languageProcess, TQT_SIGNAL(receivedStdout( KProcess*, char*, int )), - this, TQT_SLOT(receivedStdout( KProcess*, char*, int )) ); + connect( m_languageProcess, TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int )), + this, TQT_SLOT(receivedStdout( TDEProcess*, char*, int )) ); - connect( m_languageProcess, TQT_SIGNAL(receivedStderr( KProcess*, char*, int )), - this, TQT_SLOT(receivedStderr( KProcess*, char*, int )) ); + connect( m_languageProcess, TQT_SIGNAL(receivedStderr( TDEProcess*, char*, int )), + this, TQT_SLOT(receivedStderr( TDEProcess*, char*, int )) ); - connect( m_languageProcess, TQT_SIGNAL(processExited( KProcess* )), - this, TQT_SLOT(processExited( KProcess* )) ); + connect( m_languageProcess, TQT_SIGNAL(processExited( TDEProcess* )), + this, TQT_SLOT(processExited( TDEProcess* )) ); } @@ -152,7 +152,7 @@ void ExternalLanguage::displayProcessCommand() for ( TQValueList<TQCString>::const_iterator it = arguments.begin(); it != end; ++it ) { if ( (*it).isEmpty() || (*it).contains( TQRegExp("[\\s]") ) ) - quotedArguments << KProcess::quote( *it ); + quotedArguments << TDEProcess::quote( *it ); else quotedArguments << *it; } |