From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/gadu/gadueditaccount.cpp | 56 +++++++++++++++---------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'kopete/protocols/gadu/gadueditaccount.cpp') diff --git a/kopete/protocols/gadu/gadueditaccount.cpp b/kopete/protocols/gadu/gadueditaccount.cpp index cf38c4bc..08987c16 100644 --- a/kopete/protocols/gadu/gadueditaccount.cpp +++ b/kopete/protocols/gadu/gadueditaccount.cpp @@ -24,16 +24,16 @@ #include "gaduprotocol.h" #include "gadusession.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -43,7 +43,7 @@ #include "kopetepasswordwidget.h" -GaduEditAccount::GaduEditAccount( GaduProtocol* proto, Kopete::Account* ident, QWidget* parent, const char* name ) +GaduEditAccount::GaduEditAccount( GaduProtocol* proto, Kopete::Account* ident, TQWidget* parent, const char* name ) : GaduAccountEditUI( parent, name ), KopeteEditAccountWidget( ident ), protocol_( proto ), rcmd( 0 ) { @@ -69,7 +69,7 @@ GaduEditAccount::GaduEditAccount( GaduProtocol* proto, Kopete::Account* ident, Q passwordWidget_->load( &account_->password() ); - QString nick = account()->myself()->property( + TQString nick = account()->myself()->property( Kopete::Global::Properties::self()->nickName() ).value().toString(); if ( nick.isEmpty() ) { nick = account_->myself()->contactId(); @@ -82,18 +82,18 @@ GaduEditAccount::GaduEditAccount( GaduProtocol* proto, Kopete::Account* ident, Q useTls_->setCurrentItem( isSsl ? ( account_->useTls() ) : 2 ); ignoreCheck_->setChecked( account_->ignoreAnons() ); - connect( account(), SIGNAL( pubDirSearchResult( const SearchResult&, unsigned int ) ), - SLOT( slotSearchResult( const SearchResult&, unsigned int ) ) ); + connect( account(), TQT_SIGNAL( pubDirSearchResult( const SearchResult&, unsigned int ) ), + TQT_SLOT( slotSearchResult( const SearchResult&, unsigned int ) ) ); connectLabel->setText( i18n( "personal information being fetched from server", "

Fetching from server

" ) ); seqNr = account_->getPersonalInformation(); } - connect( registerNew, SIGNAL( clicked( ) ), SLOT( registerNewAccount( ) ) ); + connect( registerNew, TQT_SIGNAL( clicked( ) ), TQT_SLOT( registerNewAccount( ) ) ); - QWidget::setTabOrder( loginEdit_, passwordWidget_->mRemembered ); - QWidget::setTabOrder( passwordWidget_->mRemembered, passwordWidget_->mPassword ); - QWidget::setTabOrder( passwordWidget_->mPassword, autoLoginCheck_ ); + TQWidget::setTabOrder( loginEdit_, passwordWidget_->mRemembered ); + TQWidget::setTabOrder( passwordWidget_->mRemembered, passwordWidget_->mPassword ); + TQWidget::setTabOrder( passwordWidget_->mPassword, autoLoginCheck_ ); } void @@ -114,11 +114,11 @@ GaduEditAccount::publishUserInfo() kdDebug(14100) << uiGender->currentItem() << " gender " << endl; if ( uiGender->currentItem() == 1 ) { kdDebug(14100) << "so you become female now" << endl; - sr.gender = QString( GG_PUBDIR50_GENDER_SET_FEMALE ); + sr.gender = TQString( GG_PUBDIR50_GENDER_SET_FEMALE ); } if ( uiGender->currentItem() == 2 ) { kdDebug(14100) << "so you become male now" << endl; - sr.gender = QString( GG_PUBDIR50_GENDER_SET_MALE ); + sr.gender = TQString( GG_PUBDIR50_GENDER_SET_MALE ); } if ( account_ ) { @@ -142,12 +142,12 @@ GaduEditAccount::slotSearchResult( const SearchResult& result, unsigned int seq uiCity->setText( result[0].city ); kdDebug( 14100 ) << "gender found: " << result[0].gender << endl; - if ( result[0].gender == QString( GG_PUBDIR50_GENDER_SET_FEMALE ) ) { + if ( result[0].gender == TQString( GG_PUBDIR50_GENDER_SET_FEMALE ) ) { uiGender->setCurrentItem( 1 ); kdDebug(14100) << "looks like female" << endl; } else { - if ( result[0].gender == QString( GG_PUBDIR50_GENDER_SET_MALE ) ) { + if ( result[0].gender == TQString( GG_PUBDIR50_GENDER_SET_MALE ) ) { uiGender->setCurrentItem( 2 ); kdDebug( 14100 ) <<" looks like male" << endl; } @@ -158,7 +158,7 @@ GaduEditAccount::slotSearchResult( const SearchResult& result, unsigned int seq enableUserInfo( true ); - disconnect( SLOT( slotSearchResult( const SearchResult&, unsigned int ) ) ); + disconnect( TQT_SLOT( slotSearchResult( const SearchResult&, unsigned int ) ) ); } void @@ -180,8 +180,8 @@ GaduEditAccount::registerNewAccount() { registerNew->setDisabled( true ); regDialog = new GaduRegisterAccount( NULL , "Register account dialog" ); - connect( regDialog, SIGNAL( registeredNumber( unsigned int, QString ) ), SLOT( newUin( unsigned int, QString ) ) ); - if ( regDialog->exec() != QDialog::Accepted ) { + connect( regDialog, TQT_SIGNAL( registeredNumber( unsigned int, TQString ) ), TQT_SLOT( newUin( unsigned int, TQString ) ) ); + if ( regDialog->exec() != TQDialog::Accepted ) { loginEdit_->setText( "" ); return; } @@ -195,10 +195,10 @@ GaduEditAccount::registrationFailed() } void -GaduEditAccount::newUin( unsigned int uin, QString password ) +GaduEditAccount::newUin( unsigned int uin, TQString password ) { if ( uin ) { - loginEdit_->setText( QString::number( uin ) ); + loginEdit_->setText( TQString::number( uin ) ); passwordWidget_->setPassword( password ); } else { @@ -246,7 +246,7 @@ GaduEditAccount::apply() account_->myself()->setProperty( Kopete::Global::Properties::self()->nickName(), nickName->text() ); // this is changed only here, so i won't add any proper handling now - account_->configGroup()->writeEntry( QString::fromAscii( "nickName" ), nickName->text() ); + account_->configGroup()->writeEntry( TQString::fromAscii( "nickName" ), nickName->text() ); account_->setExcludeConnect( autoLoginCheck_->isChecked() ); account_->setUseTls( (GaduAccount::tlsConnection) useTls_->currentItem() ); -- cgit v1.2.1