summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp')
-rw-r--r--kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp b/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp
index 0010166a..e52e707f 100644
--- a/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp
@@ -18,12 +18,12 @@
#include "icqsearchdialog.h"
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qtextcodec.h>
-#include <qtabwidget.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqtextcodec.h>
+#include <tqtabwidget.h>
#include <kdebug.h>
#include <kiconloader.h>
#include <klistview.h>
@@ -41,20 +41,20 @@
#include "icqcontact.h"
#include "icquserinfowidget.h"
-ICQSearchDialog::ICQSearchDialog( ICQAccount* account, QWidget* parent, const char* name )
+ICQSearchDialog::ICQSearchDialog( ICQAccount* account, TQWidget* parent, const char* name )
: KDialogBase( parent, name, true, i18n( "ICQ User Search" ), 0, NoDefault )
{
m_account = account;
m_searchUI = new ICQSearchBase( this, name );
setMainWidget( m_searchUI );
- connect( m_searchUI->searchButton, SIGNAL( clicked() ), this, SLOT( startSearch() ) );
- connect( m_searchUI->searchResults, SIGNAL( selectionChanged() ), this, SLOT( resultSelectionChanged() ) );
- connect( m_searchUI->addButton, SIGNAL( clicked() ), this, SLOT( addContact() ) );
- connect( m_searchUI->clearButton, SIGNAL( clicked() ), this, SLOT( clearResults() ) );
- connect( m_searchUI->stopButton, SIGNAL( clicked() ), this, SLOT( stopSearch() ) );
- connect( m_searchUI->closeButton, SIGNAL( clicked() ), this, SLOT( closeDialog() ) );
- connect( m_searchUI->userInfoButton, SIGNAL( clicked() ), this, SLOT( userInfo() ) );
- connect( m_searchUI->newSearchButton, SIGNAL( clicked() ), this, SLOT( newSearch() ) );
+ connect( m_searchUI->searchButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( startSearch() ) );
+ connect( m_searchUI->searchResults, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( resultSelectionChanged() ) );
+ connect( m_searchUI->addButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( addContact() ) );
+ connect( m_searchUI->clearButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( clearResults() ) );
+ connect( m_searchUI->stopButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( stopSearch() ) );
+ connect( m_searchUI->closeButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( closeDialog() ) );
+ connect( m_searchUI->userInfoButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( userInfo() ) );
+ connect( m_searchUI->newSearchButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( newSearch() ) );
ICQProtocol *p = ICQProtocol::protocol();
p->fillComboFromTable( m_searchUI->gender, p->genders() );
@@ -91,12 +91,12 @@ void ICQSearchDialog::startSearch()
m_searchUI->searchButton->setEnabled( false );
m_searchUI->newSearchButton->setEnabled( false );
- connect( m_account->engine(), SIGNAL( gotSearchResults( const ICQSearchResult& ) ),
- this, SLOT( newResult( const ICQSearchResult& ) ) );
- connect( m_account->engine(), SIGNAL( endOfSearch( int ) ),
- this, SLOT( searchFinished( int ) ) );
+ connect( m_account->engine(), TQT_SIGNAL( gotSearchResults( const ICQSearchResult& ) ),
+ this, TQT_SLOT( newResult( const ICQSearchResult& ) ) );
+ connect( m_account->engine(), TQT_SIGNAL( endOfSearch( int ) ),
+ this, TQT_SLOT( searchFinished( int ) ) );
- const QWidget* currentPage = m_searchUI->tabWidget3->currentPage();
+ const TQWidget* currentPage = m_searchUI->tabWidget3->currentPage();
if ( currentPage == m_searchUI->tab )
{
@@ -119,7 +119,7 @@ void ICQSearchDialog::startSearch()
//create a ICQWPSearchInfo struct and send it
ICQProtocol* p = ICQProtocol::protocol();
ICQWPSearchInfo info;
- QTextCodec* codec = m_account->defaultCodec();
+ TQTextCodec* codec = m_account->defaultCodec();
info.firstName = codec->fromUnicode( m_searchUI->firstName->text() );
info.lastName = codec->fromUnicode( m_searchUI->lastName->text() );
info.nickName = codec->fromUnicode( m_searchUI->nickName->text() );
@@ -159,10 +159,10 @@ void ICQSearchDialog::startSearch()
void ICQSearchDialog::stopSearch()
{
- disconnect( m_account->engine(), SIGNAL( gotSearchResults( const ICQSearchResult& ) ),
- this, SLOT( newResult( const ICQSearchResult& ) ) );
- disconnect( m_account->engine(), SIGNAL( endOfSearch( int ) ),
- this, SLOT( searchFinished( int ) ) );
+ disconnect( m_account->engine(), TQT_SIGNAL( gotSearchResults( const ICQSearchResult& ) ),
+ this, TQT_SLOT( newResult( const ICQSearchResult& ) ) );
+ disconnect( m_account->engine(), TQT_SIGNAL( endOfSearch( int ) ),
+ this, TQT_SLOT( searchFinished( int ) ) );
m_searchUI->stopButton->setEnabled( false );
m_searchUI->searchButton->setEnabled( true );
@@ -178,7 +178,7 @@ void ICQSearchDialog::addContact()
}
else
{
- QString uin = m_searchUI->searchResults->selectedItem()->text( 0 );
+ TQString uin = m_searchUI->searchResults->selectedItem()->text( 0 );
kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "Passing " << uin << " back to the ACP" << endl;
iacp->setUINFromSearch( uin );
@@ -203,7 +203,7 @@ void ICQSearchDialog::userInfo()
NULL);
m_infoWidget = new ICQUserInfoWidget( Kopete::UI::Global::mainWidget(), "icq info" );
- QObject::connect( m_infoWidget, SIGNAL( finished() ), this, SLOT( closeUserInfo() ) );
+ TQObject::connect( m_infoWidget, TQT_SIGNAL( finished() ), this, TQT_SLOT( closeUserInfo() ) );
m_infoWidget->setContact( m_contact );
m_infoWidget->setModal(true);
@@ -217,7 +217,7 @@ void ICQSearchDialog::userInfo()
void ICQSearchDialog::closeUserInfo()
{
// Free the ICQUserInfoWidget
- QObject::disconnect( this, 0, m_infoWidget, 0 );
+ TQObject::disconnect( this, 0, m_infoWidget, 0 );
m_infoWidget->delayedDestruct();
m_infoWidget = NULL;
@@ -266,9 +266,9 @@ void ICQSearchDialog::newResult( const ICQSearchResult& info )
return;
}
- QTextCodec* codec = m_account->defaultCodec();
+ TQTextCodec* codec = m_account->defaultCodec();
- QListViewItem *item = new QListViewItem( m_searchUI->searchResults, QString::number( info.uin ),
+ TQListViewItem *item = new TQListViewItem( m_searchUI->searchResults, TQString::number( info.uin ),
codec->toUnicode( info.nickName ),
codec->toUnicode( info.firstName ),
codec->toUnicode( info.lastName ),
@@ -296,13 +296,13 @@ void ICQSearchDialog::searchFinished( int numLeft )
void ICQSearchDialog::clearFields()
{
- m_searchUI->uin->setText( QString::null );
+ m_searchUI->uin->setText( TQString::null );
- m_searchUI->firstName->setText( QString::null );
- m_searchUI->lastName->setText( QString::null );
- m_searchUI->nickName->setText( QString::null );
- m_searchUI->email->setText( QString::null );
- m_searchUI->city->setText( QString::null );
+ m_searchUI->firstName->setText( TQString::null );
+ m_searchUI->lastName->setText( TQString::null );
+ m_searchUI->nickName->setText( TQString::null );
+ m_searchUI->email->setText( TQString::null );
+ m_searchUI->city->setText( TQString::null );
m_searchUI->gender->setCurrentItem( 0 ); // Unspecified
m_searchUI->country->setCurrentItem( 0 );
m_searchUI->language->setCurrentItem( 0 );