summaryrefslogtreecommitdiffstats
path: root/parts/documentation/searchview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/documentation/searchview.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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)