diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:40:51 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:40:51 -0600 |
commit | 4c097708c4cc24f3b8e4c21f14644f5715767d47 (patch) | |
tree | e8ca4b1d3a3b3de0d18e5f144dcef9b36f830b84 /kate/insertcommand | |
parent | 0642ee50634d90e255c6f45194f6a47dc1157cde (diff) | |
download | tdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.tar.gz tdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kate/insertcommand')
-rw-r--r-- | kate/insertcommand/plugin_kateinsertcommand.cpp | 20 | ||||
-rw-r--r-- | kate/insertcommand/plugin_kateinsertcommand.h | 8 |
2 files changed, 14 insertions, 14 deletions
diff --git a/kate/insertcommand/plugin_kateinsertcommand.cpp b/kate/insertcommand/plugin_kateinsertcommand.cpp index bc0a6a4..ec5dafc 100644 --- a/kate/insertcommand/plugin_kateinsertcommand.cpp +++ b/kate/insertcommand/plugin_kateinsertcommand.cpp @@ -148,12 +148,12 @@ void PluginKateInsertCommand::slotInsertCommand() if ( ! sh ) { sh = new KShellProcess; - connect ( sh, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStdout(KProcess*, char*, int)) ); - connect ( sh, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedStderr(KProcess*, char*, int)) ); - connect ( sh, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotProcessExited(KProcess*)) ) ; + connect ( sh, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int)) ); + connect ( sh, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int)) ); + connect ( sh, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotProcessExited(TDEProcess*)) ) ; } sh->clearArguments(); @@ -170,7 +170,7 @@ void PluginKateInsertCommand::slotInsertCommand() config->writePathEntry("Last WD", d->wd()); } *sh << TQFile::encodeName(d->command()).data(); - sh->start( KProcess::NotifyOnExit, KProcess::All ); + sh->start( TDEProcess::NotifyOnExit, TDEProcess::All ); // add command to history if ( cmdhist.contains( d->command() ) ) { @@ -219,7 +219,7 @@ void PluginKateInsertCommand::slotShowWaitDlg() } } -void PluginKateInsertCommand::slotReceivedStdout( KProcess* /*p*/, char* text, +void PluginKateInsertCommand::slotReceivedStdout( TDEProcess* /*p*/, char* text, int len ) { TQString t = TQString::fromLocal8Bit ( text ); @@ -227,14 +227,14 @@ void PluginKateInsertCommand::slotReceivedStdout( KProcess* /*p*/, char* text, kv->insertText( t ); } -void PluginKateInsertCommand::slotReceivedStderr( KProcess* p, char* text, +void PluginKateInsertCommand::slotReceivedStderr( TDEProcess* p, char* text, int len ) { if ( bInsStdErr ) slotReceivedStdout( p, text, len ); } -void PluginKateInsertCommand::slotProcessExited( KProcess* p ) +void PluginKateInsertCommand::slotProcessExited( TDEProcess* p ) { if (wdlg) { wdlg->hide(); diff --git a/kate/insertcommand/plugin_kateinsertcommand.h b/kate/insertcommand/plugin_kateinsertcommand.h index 5e158f1..19c6eb3 100644 --- a/kate/insertcommand/plugin_kateinsertcommand.h +++ b/kate/insertcommand/plugin_kateinsertcommand.h @@ -42,7 +42,7 @@ namespace Kate { class PluginView; } class KConfig; -class KProcess; +class TDEProcess; class KShellProcess; class TQButtonGroup; class TQCheckBox; @@ -95,9 +95,9 @@ class PluginKateInsertCommand : public Kate::Plugin, void applyConfig( InsertCommandConfigPage* ); private slots: - void slotReceivedStdout(KProcess*, char*, int); - void slotReceivedStderr(KProcess*, char*, int); - void slotProcessExited(KProcess*); + void slotReceivedStdout(TDEProcess*, char*, int); + void slotReceivedStderr(TDEProcess*, char*, int); + void slotProcessExited(TDEProcess*); void slotShowWaitDlg(); }; |