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.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp
index b0496f03..287b36f9 100644
--- a/parts/documentation/searchview.cpp
+++ b/parts/documentation/searchview.cpp
@@ -152,7 +152,7 @@ void SearchView::search()
updateIndex();
return;
}
- TQString exe = config->readPathEntry("htsearchbin", kapp->dirs()->findExe("htsearch"));
+ TQString exe = config->readPathEntry("htsearchbin", tdeApp->dirs()->findExe("htsearch"));
if (exe.isEmpty())
{
KMessageBox::error(this, i18n("Cannot find the htsearch executable.\nIt is part of the ht://Dig package that is used by TDevelop to perform full text search. Please install ht://Dig and use Documentation page in Configure TDevelop dialog to set the htsearch location."));
@@ -160,7 +160,7 @@ void SearchView::search()
return;
}
- TQString indexdir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
+ TQString indexdir = tdeApp->dirs()->saveLocation("data", "kdevdocumentation/search");
TQDir d;
if (indexdir.isEmpty() || !TQFile::exists(indexdir + "/htdig.conf"))
{
@@ -177,7 +177,7 @@ void SearchView::search()
}
}
- TQString savedir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
+ TQString savedir = tdeApp->dirs()->saveLocation("data", "kdevdocumentation/search");
if (!d.exists(savedir))
d.mkdir(savedir);
@@ -191,7 +191,7 @@ void SearchView::search()
kdDebug(9002) << "starting tdeprocess" << endl;
kdDebug(9002) << "htdig line:" << exe << " -c " << (indexdir + "/htdig.conf ") << query << endl;
TDEProcess *proc = new TDEProcess;
- TQString picdir = kapp->dirs()->findResourceDir("data", "kdevdocumentation/pics/htdig.png");
+ TQString picdir = tdeApp->dirs()->findResourceDir("data", "kdevdocumentation/pics/htdig.png");
proc->setEnvironment("PICDIR", picdir);
*proc << exe << "-c" << (indexdir + "/htdig.conf") << query;
@@ -213,12 +213,12 @@ void SearchView::search()
// While receiving data from the subprocess, we want
// to block the user interface, but still get repaint
// events. Hack taken from NetAccess...
- kapp->setOverrideCursor(waitCursor);
+ tdeApp->setOverrideCursor(waitCursor);
TQWidget blocker(0, 0, WType_Dialog | WShowModal);
tqt_enter_modal(&blocker);
- kapp->enter_loop();
+ tdeApp->enter_loop();
tqt_leave_modal(&blocker);
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
if (!proc->normalExit() || proc->exitStatus() != 0)
{
@@ -254,7 +254,7 @@ void SearchView::htsearchStdout(TDEProcess *, char *buffer, int len)
void SearchView::htsearchExited(TDEProcess *)
{
- kapp->exit_loop();
+ tdeApp->exit_loop();
}
void SearchView::analyseSearchResults()