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.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/parts/documentation/find_documentation.cpp b/parts/documentation/find_documentation.cpp
index 1ca9e81a..782ef467 100644
--- a/parts/documentation/find_documentation.cpp
+++ b/parts/documentation/find_documentation.cpp
@@ -20,10 +20,10 @@
#include "find_documentation.h"
#include <stdlib.h>
-#include <qcheckbox.h>
-#include <qheader.h>
-#include <qapplication.h>
-#include <qstringlist.h>
+#include <tqcheckbox.h>
+#include <tqheader.h>
+#include <tqapplication.h>
+#include <tqstringlist.h>
#include <klineedit.h>
#include <kprocess.h>
@@ -46,20 +46,20 @@ FindDocumentation::FindDocumentation(DocumentationWidget* parent, const char* na
man_item(0), info_item(0), index_item(0), google_item(0), contents_item(0),
last_item(0), m_widget(parent)
{
- QWidget* tmp = QApplication::desktop();
+ TQWidget* tmp = 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 );
- connect( proc_man, SIGNAL(processExited( KProcess* )),
- this, SLOT(procManExited( KProcess* )) );
- connect( proc_man, SIGNAL(receivedStdout( KProcess*, char*, int)),
- this, SLOT(procManReadStdout( KProcess*, char*, int)) );
+ connect( proc_man, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(procManExited( KProcess* )) );
+ connect( proc_man, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)),
+ this, TQT_SLOT(procManReadStdout( KProcess*, char*, int)) );
- connect( proc_info, SIGNAL(processExited( KProcess* )),
- this, SLOT(procInfoExited( KProcess* )) );
- connect( proc_info, SIGNAL(receivedStdout( KProcess*, char*, int)),
- this, SLOT(procInfoReadStdout( KProcess*, char*, int)) );
+ connect( proc_info, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(procInfoExited( KProcess* )) );
+ connect( proc_info, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)),
+ this, TQT_SLOT(procInfoReadStdout( KProcess*, char*, int)) );
result_list->header()->hide();
result_list->setSorting(-1);
@@ -72,7 +72,7 @@ FindDocumentation::~FindDocumentation()
}
/*$SPECIALIZATION$*/
-void FindDocumentation::buttonPressedOnItem( int button, QListViewItem * item, const QPoint & pos, int // c
+void FindDocumentation::buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -84,7 +84,7 @@ void FindDocumentation::buttonPressedOnItem( int button, QListViewItem * item, c
DocUtils::docItemPopup(m_widget->part(), docItem->text(0), docItem->url(), pos, true, false);
}
-void FindDocumentation::clickOnItem( QListViewItem * item )
+void FindDocumentation::clickOnItem( TQListViewItem * item )
{
if(!item)
return;
@@ -106,8 +106,8 @@ void FindDocumentation::procInfoExited( KProcess* )
{
if (proc_info->normalExit() && proc_info->exitStatus() == 0)
{
- QStringList lines = QStringList::split("\n", proc_info_out);
- for( QStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
+ TQStringList lines = TQStringList::split("\n", proc_info_out);
+ for( TQStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
{
if( (*it) == "*")
break;
@@ -129,8 +129,8 @@ void FindDocumentation::procManExited( KProcess* )
{
if (proc_man->normalExit() && proc_man->exitStatus() == 0)
{
- QStringList lines = QStringList::split("\n", proc_man_out);
- for( QStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
+ TQStringList lines = TQStringList::split("\n", proc_man_out);
+ for( TQStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
{
DocumentationItem* newitem = new DocumentationItem(DocumentationItem::Document, man_item, search_term->text());
newitem->setURL(KURL("man://" + *it));
@@ -147,12 +147,12 @@ void FindDocumentation::procManExited( KProcess* )
void FindDocumentation::procInfoReadStdout( KProcess*, char* buf, int len)
{
- proc_info_out += QString::fromLatin1( buf, len );
+ proc_info_out += TQString::fromLatin1( buf, len );
}
void FindDocumentation::procManReadStdout( KProcess*, char* buf, int len)
{
- proc_man_out += QString::fromLatin1( buf, len );
+ proc_man_out += TQString::fromLatin1( buf, len );
}
void FindDocumentation::searchInInfo()
@@ -217,7 +217,7 @@ void FindDocumentation::searchInContents()
contents_item->setOpen(true);
last_item = contents_item;
- QListViewItemIterator it( m_widget->m_contents->m_view );
+ TQListViewItemIterator it( m_widget->m_contents->m_view );
while ( it.current() )
{
DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(it.current());
@@ -266,7 +266,7 @@ void FindDocumentation::searchInIndex()
IndexItem::List urls = item->urls();
for (IndexItem::List::const_iterator it = urls.begin(); it != urls.end(); ++it)
{
- QString text = item->text();
+ TQString text = item->text();
if (urls.count() > 1)
text = (*it).first;
if(newitem)
@@ -299,19 +299,19 @@ void FindDocumentation::startSearch()
last_item = NULL;
first_match_found = false;
- QListViewItem* item = m_options->source_list->firstChild();
+ TQListViewItem* item = m_options->source_list->firstChild();
while ( item && ( !m_options->goto_first_match->isOn() || !first_match_found ))
{
- if ( m_options->isMan(dynamic_cast<QCheckListItem*>(item)) )
+ if ( m_options->isMan(dynamic_cast<TQCheckListItem*>(item)) )
searchInMan();
- else if ( m_options->isInfo(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isInfo(dynamic_cast<TQCheckListItem*>(item)) )
searchInInfo();
- else if ( m_options->isIndex(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isIndex(dynamic_cast<TQCheckListItem*>(item)) )
searchInIndex();
- else if ( m_options->isGoogle(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isGoogle(dynamic_cast<TQCheckListItem*>(item)) )
searchInGoogle();
- else if ( m_options->isContents(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isContents(dynamic_cast<TQCheckListItem*>(item)) )
searchInContents();
item = item->itemBelow();
@@ -325,20 +325,20 @@ void FindDocumentation::startSearch()
}
-void FindDocumentation::setSearchTerm( const QString & term )
+void FindDocumentation::setSearchTerm( const TQString & term )
{
search_term->setText(term);
}
void FindDocumentation::clickOptions()
{
- if( m_options->exec() == QDialog::Accepted )
+ if( m_options->exec() == TQDialog::Accepted )
m_options->writeOptions();
else
m_options->readOptions();
}
-void FindDocumentation::focusInEvent( QFocusEvent * // e
+void FindDocumentation::focusInEvent( TQFocusEvent * // e
)
{
search_term->setFocus();