From 79b21d47bce1ee428affc97534cd8b257232a871 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:43:14 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- kate/app/kategrepdialog.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kate/app/kategrepdialog.cpp') diff --git a/kate/app/kategrepdialog.cpp b/kate/app/kategrepdialog.cpp index 0542d0c33..627fe47dd 100644 --- a/kate/app/kategrepdialog.cpp +++ b/kate/app/kategrepdialog.cpp @@ -69,7 +69,7 @@ GrepTool::GrepTool(TQWidget *parent, const char *name) : TQWidget(parent, name/*, false*/), m_fixFocus(true), childproc(0) { setCaption(i18n("Find in Files")); - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("GrepTool"); lastSearchItems = config->readListEntry("LastSearchItems"); lastSearchPaths = config->readListEntry("LastSearchPaths"); @@ -351,7 +351,7 @@ void GrepTool::slotSearch() TQString pattern = leTemplate->text(); pattern.replace( "%s", s ); - childproc = new KProcess(); + childproc = new TDEProcess(); childproc->setWorkingDirectory( m_workingDir ); *childproc << "find" << "."; if (!cbRecursive->isChecked()) @@ -377,18 +377,18 @@ void GrepTool::slotSearch() *childproc << "/dev/null"; //trick to have grep always display the filename *childproc << ";"; - connect( childproc, TQT_SIGNAL(processExited(KProcess *)), + connect( childproc, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(childExited()) ); - connect( childproc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), - TQT_SLOT(receivedOutput(KProcess *, char *, int)) ); - connect( childproc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), - TQT_SLOT(receivedErrOutput(KProcess *, char *, int)) ); + connect( childproc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), + TQT_SLOT(receivedOutput(TDEProcess *, char *, int)) ); + connect( childproc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), + TQT_SLOT(receivedErrOutput(TDEProcess *, char *, int)) ); // actually it should be checked whether the process was started successfully lbResult->setCursor( TQCursor(Qt::WaitCursor) ); btnClear->setEnabled( false ); btnSearch->setGuiItem( KGuiItem(i18n("Cancel"), "button_cancel")); - childproc->start(KProcess::NotifyOnExit, KProcess::AllOutput); + childproc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput); } void GrepTool::slotSearchFor(const TQString &pattern) @@ -483,13 +483,13 @@ void GrepTool::childExited() finish(); } -void GrepTool::receivedOutput(KProcess */*proc*/, char *buffer, int buflen) +void GrepTool::receivedOutput(TDEProcess */*proc*/, char *buffer, int buflen) { buf += TQCString(buffer, buflen+1); processOutput(); } -void GrepTool::receivedErrOutput(KProcess */*proc*/, char *buffer, int buflen) +void GrepTool::receivedErrOutput(TDEProcess */*proc*/, char *buffer, int buflen) { errbuf += TQCString( buffer, buflen + 1 ); } -- cgit v1.2.3