summaryrefslogtreecommitdiffstats
path: root/parts/documentation/searchview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation/searchview.cpp')
-rw-r--r--parts/documentation/searchview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp
index aed30404..69a91a6e 100644
--- a/parts/documentation/searchview.cpp
+++ b/parts/documentation/searchview.cpp
@@ -131,9 +131,9 @@ void SearchView::updateIndex()
void SearchView::runHtdig(const TQString &arg)
{
- KProcess proc;
+ TDEProcess proc;
proc << "tdevelop-htdig" << arg;
- proc.start(KProcess::DontCare);
+ proc.start(TDEProcess::DontCare);
}
void tqt_enter_modal(TQWidget *widget);
@@ -190,19 +190,19 @@ void SearchView::search()
kdDebug(9002) << "starting kprocess" << endl;
kdDebug(9002) << "htdig line:" << exe << " -c " << (indexdir + "/htdig.conf ") << query << endl;
- KProcess *proc = new KProcess;
+ TDEProcess *proc = new TDEProcess;
TQString picdir = kapp->dirs()->findResourceDir("data", "kdevdocumentation/pics/htdig.png");
proc->setEnvironment("PICDIR", picdir);
*proc << exe << "-c" << (indexdir + "/htdig.conf") << query;
- connect( proc, TQT_SIGNAL(receivedStdout(KProcess *,char*,int)),
- this, TQT_SLOT(htsearchStdout(KProcess *,char*,int)) );
- connect( proc, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT(htsearchExited(KProcess *)) );
+ connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *,char*,int)),
+ this, TQT_SLOT(htsearchStdout(TDEProcess *,char*,int)) );
+ connect( proc, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT(htsearchExited(TDEProcess *)) );
searchResult = "";
- if (!proc->start(KProcess::NotifyOnExit, KProcess::Stdout))
+ if (!proc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout))
{
KMessageBox::error(this, i18n("Cannot start the htsearch executable."));
kdDebug() << "process start failed" << endl;
@@ -247,12 +247,12 @@ void SearchView::search()
// m_part->partController()->showDocument(KURL("file://" + indexdir + "/results.html"));
}
-void SearchView::htsearchStdout(KProcess *, char *buffer, int len)
+void SearchView::htsearchStdout(TDEProcess *, char *buffer, int len)
{
searchResult += TQString::fromLocal8Bit(buffer, len);
}
-void SearchView::htsearchExited(KProcess *)
+void SearchView::htsearchExited(TDEProcess *)
{
kapp->exit_loop();
}