summaryrefslogtreecommitdiffstats
path: root/kaddressbook/editors/imaddresswidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/editors/imaddresswidget.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/editors/imaddresswidget.cpp')
-rw-r--r--kaddressbook/editors/imaddresswidget.cpp34
1 files changed, 17 insertions, 17 deletions
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 <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qlabel.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
#include <kdebug.h>
#include <kiconloader.h>
@@ -33,7 +33,7 @@
#include "imaddresswidget.h"
-IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> protocols )
+IMAddressWidget::IMAddressWidget( TQWidget *parent, TQValueList<KPluginInfo *> protocols )
: IMAddressBase( parent )
{
mProtocols = protocols;
@@ -41,8 +41,8 @@ IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> pro
init();
}
-IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> protocols,
- KPluginInfo *protocol, const QString& address,
+IMAddressWidget::IMAddressWidget( TQWidget *parent, TQValueList<KPluginInfo *> protocols,
+ KPluginInfo *protocol, const TQString& address,
const IMContext& context )
: IMAddressBase( parent )
{
@@ -52,23 +52,23 @@ IMAddressWidget::IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> 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<KPluginInfo *>::ConstIterator it;
+ TQValueList<KPluginInfo *>::ConstIterator it;
for ( it = mProtocols.begin(); it != mProtocols.end(); ++it )
cmbProtocol->insertItem( SmallIcon( (*it)->icon() ), (*it)->name() );
}