summaryrefslogtreecommitdiffstats
path: root/kaddressbook/editors/imaddresswidget.cpp
diff options
context:
space:
mode:
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 3d2af677..097b092c 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() );
}