summaryrefslogtreecommitdiffstats
path: root/parts/documentation/find_documentation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation/find_documentation.cpp')
-rw-r--r--parts/documentation/find_documentation.cpp30
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();