From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/editors/imaddresswidget.cpp | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kaddressbook/editors/imaddresswidget.cpp') diff --git a/kaddressbook/editors/imaddresswidget.cpp b/kaddressbook/editors/imaddresswidget.cpp index 3d2af677e..097b092c0 100644 --- a/kaddressbook/editors/imaddresswidget.cpp +++ b/kaddressbook/editors/imaddresswidget.cpp @@ -21,10 +21,10 @@ with any edition of Qt, and distribute the resulting executable, without including the source code for Qt in the source distribution. */ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -33,7 +33,7 @@ #include "imaddresswidget.h" -IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList protocols ) +IMAddressWidget::IMAddressWidget( TQWidget *parent, TQValueList protocols ) : IMAddressBase( parent ) { mProtocols = protocols; @@ -41,8 +41,8 @@ IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList pro init(); } -IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList protocols, - KPluginInfo *protocol, const QString& address, +IMAddressWidget::IMAddressWidget( TQWidget *parent, TQValueList protocols, + KPluginInfo *protocol, const TQString& address, const IMContext& context ) : IMAddressBase( parent ) { @@ -52,23 +52,23 @@ IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList pro populateProtocols(); cmbProtocol->setCurrentItem( mProtocols.findIndex( protocol ) ); - edtAddress->setText( address.section( QChar( 0xE120 ), 0, 0 ) ); - edtNetwork->setText( address.section( QChar( 0xE120 ), 1 ) ); + edtAddress->setText( address.section( TQChar( 0xE120 ), 0, 0 ) ); + edtNetwork->setText( address.section( TQChar( 0xE120 ), 1 ) ); init(); } void IMAddressWidget::init() { - connect( cmbProtocol, SIGNAL( activated( const QString& ) ), - this, SLOT( slotProtocolChanged() ) ); - connect( edtAddress, SIGNAL( textChanged( const QString& ) ), - this, SLOT( slotAddressChanged( const QString& ) ) ); + connect( cmbProtocol, TQT_SIGNAL( activated( const TQString& ) ), + this, TQT_SLOT( slotProtocolChanged() ) ); + connect( edtAddress, TQT_SIGNAL( textChanged( const TQString& ) ), + this, TQT_SLOT( slotAddressChanged( const TQString& ) ) ); slotProtocolChanged(); } -void IMAddressWidget::slotAddressChanged( const QString &text ) +void IMAddressWidget::slotAddressChanged( const TQString &text ) { emit inValidState( !text.stripWhiteSpace().isEmpty() ); } @@ -105,12 +105,12 @@ IMContext IMAddressWidget::context() const return context; } -QString IMAddressWidget::address() const +TQString IMAddressWidget::address() const { // The protocol irc is a special case and hard coded in. // It's not nice, but the simplest way that I can see. if ( protocol()->name() == "IRC" && !edtNetwork->text().stripWhiteSpace().isEmpty() ) - return edtAddress->text().stripWhiteSpace() + QChar( 0xE120 ) + edtNetwork->text().stripWhiteSpace(); + return edtAddress->text().stripWhiteSpace() + TQChar( 0xE120 ) + edtNetwork->text().stripWhiteSpace(); else return edtAddress->text().stripWhiteSpace(); } @@ -118,7 +118,7 @@ QString IMAddressWidget::address() const void IMAddressWidget::populateProtocols() { // insert the protocols in order - QValueList::ConstIterator it; + TQValueList::ConstIterator it; for ( it = mProtocols.begin(); it != mProtocols.end(); ++it ) cmbProtocol->insertItem( SmallIcon( (*it)->icon() ), (*it)->name() ); } -- cgit v1.2.1