diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/documentation/find_documentation.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-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/find_documentation.cpp')
-rw-r--r-- | parts/documentation/find_documentation.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/parts/documentation/find_documentation.cpp b/parts/documentation/find_documentation.cpp index 782ef467..60b0bce1 100644 --- a/parts/documentation/find_documentation.cpp +++ b/parts/documentation/find_documentation.cpp @@ -41,15 +41,15 @@ #include <klocale.h> -FindDocumentation::FindDocumentation(DocumentationWidget* parent, const char* name) - :FindDocumentationBase(parent, name), +FindDocumentation::FindDocumentation(DocumentationWidget* tqparent, const char* name) + :FindDocumentationBase(tqparent, name), man_item(0), info_item(0), index_item(0), google_item(0), contents_item(0), - last_item(0), m_widget(parent) + last_item(0), m_widget(tqparent) { - TQWidget* tmp = TQApplication::desktop(); + TQWidget* tmp = TQT_TQWIDGET(TQApplication::desktop()); setGeometry(tmp->width()/2 - width()/2, tmp->height()/2 - height()/2, width(), height()); - proc_man = new KProcess( this ); - proc_info = new KProcess( this ); + proc_man = new KProcess( TQT_TQOBJECT(this) ); + proc_info = new KProcess( TQT_TQOBJECT(this) ); connect( proc_man, TQT_SIGNAL(processExited( KProcess* )), this, TQT_SLOT(procManExited( KProcess* )) ); @@ -94,11 +94,11 @@ void FindDocumentation::clickOnItem( TQListViewItem * item ) DocumentationItem* doc_item = dynamic_cast<DocumentationItem*>(item); - if(item->parent() == man_item || - item->parent() == info_item || - item->parent() == google_item || - item->parent() == index_item || - item->parent() == contents_item) + if(item->tqparent() == man_item || + item->tqparent() == info_item || + item->tqparent() == google_item || + item->tqparent() == index_item || + item->tqparent() == contents_item) m_widget->part()->partController()->showDocument(doc_item->url()); } @@ -147,12 +147,12 @@ void FindDocumentation::procManExited( KProcess* ) void FindDocumentation::procInfoReadStdout( KProcess*, char* buf, int len) { - proc_info_out += TQString::fromLatin1( buf, len ); + proc_info_out += TQString::tqfromLatin1( buf, len ); } void FindDocumentation::procManReadStdout( KProcess*, char* buf, int len) { - proc_man_out += TQString::fromLatin1( buf, len ); + proc_man_out += TQString::tqfromLatin1( buf, len ); } void FindDocumentation::searchInInfo() @@ -228,7 +228,7 @@ void FindDocumentation::searchInContents() catalogItem->load(); catalogItem->plugin()->setCatalogURL(catalogItem); } - if (it.current()->text(0).contains(search_term->text(),false)) + if (it.current()->text(0).tqcontains(search_term->text(),false)) { DocumentationItem* newitem = new DocumentationItem(DocumentationItem::Document, contents_item, it.current()->text(0) ); @@ -260,7 +260,7 @@ void FindDocumentation::searchInIndex() DocumentationItem* newitem = 0; while(item) { - if(!item->text().contains(search_term->text(),false)) + if(!item->text().tqcontains(search_term->text(),false)) break; IndexItem::List urls = item->urls(); |