summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/gadu/gadueditaccount.cpp
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/gadu/gadueditaccount.cpp
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/gadu/gadueditaccount.cpp')
-rw-r--r--kopete/protocols/gadu/gadueditaccount.cpp56
1 files changed, 28 insertions, 28 deletions
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 <qradiobutton.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qstring.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qbutton.h>
-#include <qregexp.h>
-#include <qpushbutton.h>
-#include <qgroupbox.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqstring.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqbutton.h>
+#include <tqregexp.h>
+#include <tqpushbutton.h>
+#include <tqgroupbox.h>
#include <klineedit.h>
#include <kmessagebox.h>
@@ -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",
"<p align=\"center\">Fetching from server</p>" ) );
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() );