summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/icq/ui
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/oscar/icq/ui
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/oscar/icq/ui')
-rw-r--r--kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp30
-rw-r--r--kopete/protocols/oscar/icq/ui/icqaddcontactpage.h8
-rw-r--r--kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp14
-rw-r--r--kopete/protocols/oscar/icq/ui/icqauthreplydialog.h8
-rw-r--r--kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp32
-rw-r--r--kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h8
-rw-r--r--kopete/protocols/oscar/icq/ui/icqsearchdialog.cpp72
-rw-r--r--kopete/protocols/oscar/icq/ui/icqsearchdialog.h2
-rw-r--r--kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp84
-rw-r--r--kopete/protocols/oscar/icq/ui/icquserinfowidget.h2
10 files changed, 130 insertions, 130 deletions
diff --git a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp
index b1ab2eb4..3461ed8f 100644
--- a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.cpp
@@ -18,13 +18,13 @@
#include <ctype.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qtabwidget.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqtabwidget.h>
+#include <tqlabel.h>
#include <kdebug.h>
#include <kiconloader.h>
@@ -39,28 +39,28 @@
#include "icqsearchdialog.h"
-ICQAddContactPage::ICQAddContactPage(ICQAccount *owner, QWidget *parent, const char *name)
+ICQAddContactPage::ICQAddContactPage(ICQAccount *owner, TQWidget *parent, const char *name)
: AddContactPage(parent,name)
{
kdDebug(14153) << k_funcinfo << "called" << endl;
mAccount = owner;
m_searchDialog = 0L;
- (new QVBoxLayout(this))->setAutoAdd(true);
+ (new TQVBoxLayout(this))->setAutoAdd(true);
addUI = new icqAddUI(this);
- connect( addUI->searchButton, SIGNAL( clicked() ), this, SLOT( showSearchDialog() ) );
+ connect( addUI->searchButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( showSearchDialog() ) );
}
ICQAddContactPage::~ICQAddContactPage()
{
}
-void ICQAddContactPage::setUINFromSearch( const QString& uin )
+void ICQAddContactPage::setUINFromSearch( const TQString& uin )
{
addUI->uinEdit->setText( uin );
}
-void ICQAddContactPage::showEvent(QShowEvent *e)
+void ICQAddContactPage::showEvent(TQShowEvent *e)
{
// slotSelectionChanged();
AddContactPage::showEvent(e);
@@ -70,7 +70,7 @@ bool ICQAddContactPage::apply(Kopete::Account* , Kopete::MetaContact *parentCont
{
kdDebug(14153) << k_funcinfo << "called; adding contact..." << endl;
- QString contactId = addUI->uinEdit->text();
+ TQString contactId = addUI->uinEdit->text();
kdDebug(14153) << k_funcinfo << "uin=" << contactId << endl;
return mAccount->addContact(contactId, parentContact, Kopete::Account::ChangeKABC );
@@ -109,13 +109,13 @@ void ICQAddContactPage::showSearchDialog()
{
m_searchDialog = new ICQSearchDialog( mAccount, this, "icqSearchDialog" );
m_searchDialog->show();
- connect( m_searchDialog, SIGNAL( finished() ), this, SLOT( searchDialogDestroyed() ) );
+ connect( m_searchDialog, TQT_SIGNAL( finished() ), this, TQT_SLOT( searchDialogDestroyed() ) );
}
}
void ICQAddContactPage::searchDialogDestroyed()
{
- QObject::disconnect( this, 0, m_searchDialog, 0 );
+ TQObject::disconnect( this, 0, m_searchDialog, 0 );
m_searchDialog->delayedDestruct();
m_searchDialog = NULL;
}
diff --git a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h
index e9285b79..c6c22eb2 100644
--- a/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h
+++ b/kopete/protocols/oscar/icq/ui/icqaddcontactpage.h
@@ -18,7 +18,7 @@
#ifndef ICQADDCONTACTPAGE_H
#define ICQADDCONTACTPAGE_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <addcontactpage.h>
/**
@@ -34,16 +34,16 @@ class ICQAddContactPage : public AddContactPage
Q_OBJECT
public:
- ICQAddContactPage(ICQAccount *owner, QWidget *parent = 0, const char *name = 0);
+ ICQAddContactPage(ICQAccount *owner, TQWidget *parent = 0, const char *name = 0);
~ICQAddContactPage();
virtual bool validateData();
virtual bool apply(Kopete::Account* , Kopete::MetaContact *parentContact);
- void setUINFromSearch( const QString& );
+ void setUINFromSearch( const TQString& );
protected:
- void showEvent(QShowEvent *e);
+ void showEvent(TQShowEvent *e);
private slots:
void showSearchDialog();
diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp
index 76b56fba..a92b33de 100644
--- a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.cpp
@@ -20,11 +20,11 @@
#include <klocale.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qlineedit.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqlineedit.h>
-ICQAuthReplyDialog::ICQAuthReplyDialog( QWidget *parent, const char *name, bool wasRequested )
+ICQAuthReplyDialog::ICQAuthReplyDialog( TQWidget *parent, const char *name, bool wasRequested )
: KDialogBase( parent, name, true, i18n( "Authorization Reply" ), KDialogBase::Ok | KDialogBase::Cancel )
{
m_ui = new ICQAuthReplyUI( this );
@@ -46,7 +46,7 @@ ICQAuthReplyDialog::~ICQAuthReplyDialog()
{
}
-void ICQAuthReplyDialog::setUser( const QString & user )
+void ICQAuthReplyDialog::setUser( const TQString & user )
{
if ( m_wasRequested )
m_ui->lblUserReq->setText(
@@ -55,12 +55,12 @@ void ICQAuthReplyDialog::setUser( const QString & user )
m_ui->lblUserReq->setText( i18n( "Authorization reply to <b>%1</b>." ).arg( user ) );
}
-void ICQAuthReplyDialog::setRequestReason( const QString & reason )
+void ICQAuthReplyDialog::setRequestReason( const TQString & reason )
{
m_ui->lblRequestReason->setText( reason );
}
-QString ICQAuthReplyDialog::reason()
+TQString ICQAuthReplyDialog::reason()
{
return m_ui->leReason->text();
}
diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
index da27b241..f32d4569 100644
--- a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
+++ b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
@@ -30,12 +30,12 @@ class ICQAuthReplyDialog : public KDialogBase
{
Q_OBJECT
public:
- ICQAuthReplyDialog(QWidget *parent = 0, const char *name = 0, bool wasRequested = true);
+ ICQAuthReplyDialog(TQWidget *parent = 0, const char *name = 0, bool wasRequested = true);
~ICQAuthReplyDialog();
- void setUser( const QString& user );
- void setRequestReason( const QString& reason );
- QString reason();
+ void setUser( const TQString& user );
+ void setRequestReason( const TQString& reason );
+ TQString reason();
bool grantAuth();
private:
bool m_wasRequested;
diff --git a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp
index e4b308be..04a312a4 100644
--- a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp
+++ b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.cpp
@@ -17,13 +17,13 @@
#include "icqeditaccountwidget.h"
#include "icqeditaccountui.h"
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qtextedit.h>
-#include <qspinbox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqtextedit.h>
+#include <tqspinbox.h>
+#include <tqpushbutton.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -44,15 +44,15 @@
#include "icqcontact.h"
ICQEditAccountWidget::ICQEditAccountWidget(ICQProtocol *protocol,
- Kopete::Account *account, QWidget *parent, const char *name)
- : QWidget(parent, name), KopeteEditAccountWidget(account)
+ Kopete::Account *account, TQWidget *parent, const char *name)
+ : TQWidget(parent, name), KopeteEditAccountWidget(account)
{
kdDebug(14153) << k_funcinfo << "Called." << endl;
mAccount=dynamic_cast<ICQAccount*>(account);
mProtocol=protocol;
- (new QVBoxLayout(this))->setAutoAdd(true);
+ (new TQVBoxLayout(this))->setAutoAdd(true);
mAccountSettings = new ICQEditAccountUI( this );
mProtocol->fillComboFromTable( mAccountSettings->encodingCombo, mProtocol->encodings() );
@@ -67,7 +67,7 @@ ICQEditAccountWidget::ICQEditAccountWidget(ICQProtocol *protocol,
mAccountSettings->mPasswordWidget->load(&mAccount->password());
mAccountSettings->chkAutoLogin->setChecked(mAccount->excludeConnect());
- QString serverEntry = mAccount->configGroup()->readEntry("Server", "login.oscar.aol.com");
+ TQString serverEntry = mAccount->configGroup()->readEntry("Server", "login.oscar.aol.com");
int portEntry = mAccount->configGroup()->readNumEntry("Port", 5190);
if ( serverEntry != "login.oscar.aol.com" || ( portEntry != 5190) )
mAccountSettings->optionOverrideServer->setChecked( true );
@@ -99,12 +99,12 @@ ICQEditAccountWidget::ICQEditAccountWidget(ICQProtocol *protocol,
4 );
}
- QObject::connect(mAccountSettings->buttonRegister, SIGNAL(clicked()), this, SLOT(slotOpenRegister()));
+ TQObject::connect(mAccountSettings->buttonRegister, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpenRegister()));
/* Set tab order to password custom widget correctly */
- QWidget::setTabOrder( mAccountSettings->edtAccountId, mAccountSettings->mPasswordWidget->mRemembered );
- QWidget::setTabOrder( mAccountSettings->mPasswordWidget->mRemembered, mAccountSettings->mPasswordWidget->mPassword );
- QWidget::setTabOrder( mAccountSettings->mPasswordWidget->mPassword, mAccountSettings->chkAutoLogin );
+ TQWidget::setTabOrder( mAccountSettings->edtAccountId, mAccountSettings->mPasswordWidget->mRemembered );
+ TQWidget::setTabOrder( mAccountSettings->mPasswordWidget->mRemembered, mAccountSettings->mPasswordWidget->mPassword );
+ TQWidget::setTabOrder( mAccountSettings->mPasswordWidget->mPassword, mAccountSettings->chkAutoLogin );
}
@@ -158,7 +158,7 @@ bool ICQEditAccountWidget::validateData()
{
kdDebug(14153) << k_funcinfo << "Called." << endl;
- QString userName = mAccountSettings->edtAccountId->text();
+ TQString userName = mAccountSettings->edtAccountId->text();
if (userName.isEmpty())
return false;
diff --git a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h
index fc5c6d38..4bc1a52b 100644
--- a/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h
+++ b/kopete/protocols/oscar/icq/ui/icqeditaccountwidget.h
@@ -18,8 +18,8 @@
#ifndef ICQEDITACCOUNTWIDGET_H
#define ICQEDITACCOUNTWIDGET_H
-#include <qwidget.h>
-#include <qdatetime.h>
+#include <tqwidget.h>
+#include <tqdatetime.h>
#include "editaccountwidget.h"
namespace Kopete { class Account; }
@@ -28,13 +28,13 @@ class ICQAccount;
class ICQProtocol;
class ICQEditAccountUI;
-class ICQEditAccountWidget : public QWidget, public KopeteEditAccountWidget
+class ICQEditAccountWidget : public TQWidget, public KopeteEditAccountWidget
{
Q_OBJECT
public:
ICQEditAccountWidget(ICQProtocol *, Kopete::Account *,
- QWidget *parent=0, const char *name=0);
+ TQWidget *parent=0, const char *name=0);
virtual bool validateData();
virtual Kopete::Account *apply();
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 );
diff --git a/kopete/protocols/oscar/icq/ui/icqsearchdialog.h b/kopete/protocols/oscar/icq/ui/icqsearchdialog.h
index b14aa2a1..aca61ee7 100644
--- a/kopete/protocols/oscar/icq/ui/icqsearchdialog.h
+++ b/kopete/protocols/oscar/icq/ui/icqsearchdialog.h
@@ -33,7 +33,7 @@ class ICQSearchDialog : public KDialogBase
{
Q_OBJECT
public:
- ICQSearchDialog( ICQAccount* account, QWidget* parent = 0, const char* name = 0 );
+ ICQSearchDialog( ICQAccount* account, TQWidget* parent = 0, const char* name = 0 );
~ICQSearchDialog();
private slots:
diff --git a/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp b/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp
index 3830e05f..44fd5afd 100644
--- a/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp
+++ b/kopete/protocols/oscar/icq/ui/icquserinfowidget.cpp
@@ -18,12 +18,12 @@
#include "icquserinfowidget.h"
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qobject.h>
-#include <qtextcodec.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqobject.h>
+#include <tqtextcodec.h>
#include <kdatewidget.h>
#include <kdebug.h>
@@ -40,36 +40,36 @@
#include "icqinterestinfowidget.h"
-ICQUserInfoWidget::ICQUserInfoWidget( QWidget * parent, const char * name )
+ICQUserInfoWidget::ICQUserInfoWidget( TQWidget * parent, const char * name )
: KDialogBase( KDialogBase::IconList, 0, parent, name, false, i18n( "ICQ User Information" ), Ok )
{
kdDebug(14153) << k_funcinfo << "Creating new icq user info widget" << endl;
- QFrame* genInfo = addPage( i18n( "General Info" ),
+ TQFrame* genInfo = addPage( i18n( "General Info" ),
i18n( "General ICQ Information" ),
- KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "identity" ), KIcon::Desktop ) );
- QVBoxLayout* genLayout = new QVBoxLayout( genInfo );
+ KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "identity" ), KIcon::Desktop ) );
+ TQVBoxLayout* genLayout = new TQVBoxLayout( genInfo );
m_genInfoWidget = new ICQGeneralInfoWidget( genInfo, "Basic Information" );
genLayout->addWidget( m_genInfoWidget );
- QFrame* workInfo = addPage( i18n( "Work Info" ),
+ TQFrame* workInfo = addPage( i18n( "Work Info" ),
i18n( "Work Information" ),
- KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "attach" ), KIcon::Desktop ) );
- QVBoxLayout* workLayout = new QVBoxLayout( workInfo );
+ KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "attach" ), KIcon::Desktop ) );
+ TQVBoxLayout* workLayout = new TQVBoxLayout( workInfo );
m_workInfoWidget = new ICQWorkInfoWidget( workInfo, "Work Information" );
workLayout->addWidget( m_workInfoWidget );
- QFrame* otherInfo = addPage( i18n( "Other Info" ),
+ TQFrame* otherInfo = addPage( i18n( "Other Info" ),
i18n( "Other ICQ Information" ),
- KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "email" ), KIcon::Desktop ) );
- QVBoxLayout* otherLayout = new QVBoxLayout( otherInfo );
+ KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "email" ), KIcon::Desktop ) );
+ TQVBoxLayout* otherLayout = new TQVBoxLayout( otherInfo );
m_otherInfoWidget = new ICQOtherInfoWidget( otherInfo, "Other Information" );
otherLayout->addWidget( m_otherInfoWidget );
- QFrame* interestInfo = addPage( i18n( "Interest Info" ),
+ TQFrame* interestInfo = addPage( i18n( "Interest Info" ),
i18n( "Interest" ),
- KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "email" ), KIcon::Desktop ) );
- QVBoxLayout* interestLayout = new QVBoxLayout( interestInfo );
+ KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "email" ), KIcon::Desktop ) );
+ TQVBoxLayout* interestLayout = new TQVBoxLayout( interestInfo );
m_interestInfoWidget = new ICQInterestInfoWidget( interestInfo, "Other Information" );
interestLayout->addWidget( m_interestInfoWidget );
@@ -78,21 +78,21 @@ ICQUserInfoWidget::ICQUserInfoWidget( QWidget * parent, const char * name )
void ICQUserInfoWidget::setContact( ICQContact* contact )
{
m_contact = contact;
- QObject::connect( contact, SIGNAL( haveBasicInfo( const ICQGeneralUserInfo& ) ),
- this, SLOT( fillBasicInfo( const ICQGeneralUserInfo& ) ) );
- QObject::connect( contact, SIGNAL( haveWorkInfo( const ICQWorkUserInfo& ) ),
- this, SLOT( fillWorkInfo( const ICQWorkUserInfo& ) ) );
- QObject::connect( contact, SIGNAL( haveEmailInfo( const ICQEmailInfo& ) ),
- this, SLOT( fillEmailInfo( const ICQEmailInfo& ) ) );
- QObject::connect( contact, SIGNAL( haveMoreInfo( const ICQMoreUserInfo& ) ),
- this, SLOT( fillMoreInfo( const ICQMoreUserInfo& ) ) );
- QObject::connect( contact, SIGNAL( haveInterestInfo( const ICQInterestInfo& ) ),
- this, SLOT( fillInterestInfo( const ICQInterestInfo& ) ) );
+ TQObject::connect( contact, TQT_SIGNAL( haveBasicInfo( const ICQGeneralUserInfo& ) ),
+ this, TQT_SLOT( fillBasicInfo( const ICQGeneralUserInfo& ) ) );
+ TQObject::connect( contact, TQT_SIGNAL( haveWorkInfo( const ICQWorkUserInfo& ) ),
+ this, TQT_SLOT( fillWorkInfo( const ICQWorkUserInfo& ) ) );
+ TQObject::connect( contact, TQT_SIGNAL( haveEmailInfo( const ICQEmailInfo& ) ),
+ this, TQT_SLOT( fillEmailInfo( const ICQEmailInfo& ) ) );
+ TQObject::connect( contact, TQT_SIGNAL( haveMoreInfo( const ICQMoreUserInfo& ) ),
+ this, TQT_SLOT( fillMoreInfo( const ICQMoreUserInfo& ) ) );
+ TQObject::connect( contact, TQT_SIGNAL( haveInterestInfo( const ICQInterestInfo& ) ),
+ this, TQT_SLOT( fillInterestInfo( const ICQInterestInfo& ) ) );
}
void ICQUserInfoWidget::fillBasicInfo( const ICQGeneralUserInfo& ui )
{
- QTextCodec* codec = m_contact->contactCodec();
+ TQTextCodec* codec = m_contact->contactCodec();
m_genInfoWidget->uinEdit->setText( m_contact->contactId() );
m_genInfoWidget->nickNameEdit->setText( codec->toUnicode( ui.nickname ) );
m_genInfoWidget->fullNameEdit->setText( codec->toUnicode( ui.firstName ) + " " + codec->toUnicode( ui.lastName ) );
@@ -106,13 +106,13 @@ void ICQUserInfoWidget::fillBasicInfo( const ICQGeneralUserInfo& ui )
m_genInfoWidget->cellEdit->setText( codec->toUnicode( ui.cellNumber ) );
m_genInfoWidget->zipEdit->setText( codec->toUnicode( ui.zip ) );
- QString country = static_cast<ICQProtocol*>( m_contact->protocol() )->countries()[ui.country];
+ TQString country = static_cast<ICQProtocol*>( m_contact->protocol() )->countries()[ui.country];
m_genInfoWidget->countryEdit->setText( country );
}
void ICQUserInfoWidget::fillWorkInfo( const ICQWorkUserInfo& ui )
{
- QTextCodec* codec = m_contact->contactCodec();
+ TQTextCodec* codec = m_contact->contactCodec();
m_workInfoWidget->cityEdit->setText( codec->toUnicode( ui.city ) );
m_workInfoWidget->stateEdit->setText( codec->toUnicode( ui.state ) );
m_workInfoWidget->phoneEdit->setText( codec->toUnicode( ui.phone ) );
@@ -125,7 +125,7 @@ void ICQUserInfoWidget::fillWorkInfo( const ICQWorkUserInfo& ui )
m_workInfoWidget->homepageEdit->setText( codec->toUnicode( ui.homepage ) );
ICQProtocol* p = static_cast<ICQProtocol*>( m_contact->protocol() );
- QString country = p->countries()[ui.country];
+ TQString country = p->countries()[ui.country];
m_workInfoWidget->countryEdit->setText( country );
//TODO handle the occupation
@@ -137,24 +137,24 @@ void ICQUserInfoWidget::fillEmailInfo( const ICQEmailInfo& )
void ICQUserInfoWidget::fillInterestInfo( const ICQInterestInfo& info)
{
- QTextCodec* codec = m_contact->contactCodec();
+ TQTextCodec* codec = m_contact->contactCodec();
if (info.count>0) {
- QString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[0]];
+ TQString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[0]];
m_interestInfoWidget->topic1->setText( topic );
m_interestInfoWidget->desc1->setText( codec->toUnicode( info.descriptions[0] ) );
}
if (info.count>1) {
- QString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[1]];
+ TQString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[1]];
m_interestInfoWidget->topic2->setText( topic );
m_interestInfoWidget->desc2->setText( codec->toUnicode( info.descriptions[1] ) );
}
if (info.count>2) {
- QString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[2]];
+ TQString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[2]];
m_interestInfoWidget->topic3->setText( topic );
m_interestInfoWidget->desc3->setText( codec->toUnicode( info.descriptions[2] ) );
}
if (info.count>3) {
- QString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[3]];
+ TQString topic = static_cast<ICQProtocol*>( m_contact->protocol() )->interests()[info.topics[3]];
m_interestInfoWidget->topic4->setText( topic );
m_interestInfoWidget->desc4->setText( codec->toUnicode( info.descriptions[3] ) );
}
@@ -162,22 +162,22 @@ void ICQUserInfoWidget::fillInterestInfo( const ICQInterestInfo& info)
void ICQUserInfoWidget::fillMoreInfo( const ICQMoreUserInfo& ui )
{
- QTextCodec* codec = m_contact->contactCodec();
+ TQTextCodec* codec = m_contact->contactCodec();
m_genInfoWidget->ageSpinBox->setValue( ui.age );
if ( ui.birthday.isValid() )
m_genInfoWidget->birthday->setText( KGlobal::locale()->formatDate( ui.birthday,true ) );
- QString gender = static_cast<ICQProtocol*>( m_contact->protocol() )->genders()[ui.gender];
+ TQString gender = static_cast<ICQProtocol*>( m_contact->protocol() )->genders()[ui.gender];
m_genInfoWidget->genderEdit->setText( gender );
m_genInfoWidget->homepageEdit->setText( codec->toUnicode( ui.homepage ) );
- QString ms = static_cast<ICQProtocol*>( m_contact->protocol() )->maritals()[ui.marital];
+ TQString ms = static_cast<ICQProtocol*>( m_contact->protocol() )->maritals()[ui.marital];
m_genInfoWidget->marital->setText( ms );
m_genInfoWidget->oCityEdit->setText( codec->toUnicode( ui.ocity) );
m_genInfoWidget->oStateEdit->setText( codec->toUnicode( ui.ostate) );
- QString ocountry = static_cast<ICQProtocol*>( m_contact->protocol() )->countries()[ui.ocountry];
+ TQString ocountry = static_cast<ICQProtocol*>( m_contact->protocol() )->countries()[ui.ocountry];
m_genInfoWidget->oCountryEdit->setText( ocountry );
//TODO languages
diff --git a/kopete/protocols/oscar/icq/ui/icquserinfowidget.h b/kopete/protocols/oscar/icq/ui/icquserinfowidget.h
index ef478e59..ac4048ab 100644
--- a/kopete/protocols/oscar/icq/ui/icquserinfowidget.h
+++ b/kopete/protocols/oscar/icq/ui/icquserinfowidget.h
@@ -33,7 +33,7 @@ class ICQUserInfoWidget : public KDialogBase
{
Q_OBJECT
public:
- ICQUserInfoWidget( QWidget* parent = 0, const char* name = 0 );
+ ICQUserInfoWidget( TQWidget* parent = 0, const char* name = 0 );
void setContact( ICQContact* contact );
public slots: