From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: 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 --- parts/documentation/searchview.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'parts/documentation/searchview.cpp') 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("(.*)"); if (urlExp.search(line)==-1) -- cgit v1.2.3