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.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp
index c7b2305a..a2d688ec 100644
--- a/parts/documentation/searchview.cpp
+++ b/parts/documentation/searchview.cpp
@@ -49,8 +49,8 @@
#include "documentation_part.h"
#include "docutils.h"
-SearchView::SearchView(DocumentationPart *part, TQWidget *parent, const char *name)
- :TQWidget(parent, name), m_part(part)
+SearchView::SearchView(DocumentationPart *part, TQWidget *tqparent, const char *name)
+ :TQWidget(tqparent, name), m_part(part)
{
TQVBoxLayout *l = new TQVBoxLayout(this, 0, KDialog::spacingHint());
@@ -182,11 +182,11 @@ void SearchView::search()
d.mkdir(savedir);
TQString query = TQString("words=%1;method=%2;matchesperpage=%3;format=%4;sort=%5")
- .arg(m_edit->text())
- .arg(m_searchMethodBox->currentItem()==1? "or" : "and")
- .arg(50)
- .arg("builtin-short")
- .arg(m_sortMethodBox->currentItem()==2? "date" : m_sortMethodBox->currentItem()==1? "title" : "score");
+ .tqarg(m_edit->text())
+ .tqarg(m_searchMethodBox->currentItem()==1? "or" : "and")
+ .tqarg(50)
+ .tqarg("builtin-short")
+ .tqarg(m_sortMethodBox->currentItem()==2? "date" : m_sortMethodBox->currentItem()==1? "title" : "score");
kdDebug(9002) << "starting kprocess" << endl;
kdDebug(9002) << "htdig line:" << exe << " -c " << (indexdir + "/htdig.conf ") << query << endl;
@@ -211,7 +211,7 @@ void SearchView::search()
}
// While receiving data from the subprocess, we want
- // to block the user interface, but still get repaint
+ // to block the user interface, but still get tqrepaint
// events. Hack taken from NetAccess...
kapp->setOverrideCursor(waitCursor);
TQWidget blocker(0, 0, WType_Dialog | WShowModal);
@@ -230,8 +230,8 @@ void SearchView::search()
delete proc;
// modify the search result
- searchResult = searchResult.replace(TQRegExp("http://localhost/"), "file:/");
- searchResult = searchResult.replace(TQRegExp("Content-type: text/html"), "");
+ searchResult = searchResult.tqreplace(TQRegExp("http://localhost/"), "file:/");
+ searchResult = searchResult.tqreplace(TQRegExp("Content-type: text/html"), "");
// dump the search result
TQFile f(savedir + "/results.html");
@@ -268,7 +268,7 @@ void SearchView::analyseSearchResults()
TQRegExp starsExp("alt=\"\\*\"");
starsExp.setMinimal(true);
- int stars = line.contains(starsExp);
+ int stars = line.tqcontains(starsExp);
TQRegExp urlExp("<strong><a href=\"(.*)\">(.*)</a></strong>");
if (urlExp.search(line)==-1)