summaryrefslogtreecommitdiffstats
path: root/kaddressbook/imeditwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/imeditwidget.cpp')
-rw-r--r--kaddressbook/imeditwidget.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kaddressbook/imeditwidget.cpp b/kaddressbook/imeditwidget.cpp
index 7e663d25f..11827f89a 100644
--- a/kaddressbook/imeditwidget.cpp
+++ b/kaddressbook/imeditwidget.cpp
@@ -21,14 +21,14 @@
without including the source code for Qt in the source distribution.
*/
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
#include <kaccelmanager.h>
#include <kconfig.h>
@@ -43,25 +43,25 @@
#include "imeditwidget.h"
#include "imeditorwidget.h"
-IMEditWidget::IMEditWidget( QWidget *parent, KABC::Addressee &addr, const char *name )
- : QWidget( parent, name ), mAddressee(addr)
+IMEditWidget::IMEditWidget( TQWidget *parent, KABC::Addressee &addr, const char *name )
+ : TQWidget( parent, name ), mAddressee(addr)
{
- QGridLayout *topLayout = new QGridLayout( this, 2, 2, KDialog::marginHint(),
+ TQGridLayout *topLayout = new TQGridLayout( this, 2, 2, KDialog::marginHint(),
KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "IM address:" ), this );
+ TQLabel *label = new TQLabel( i18n( "IM address:" ), this );
topLayout->addWidget( label, 0, 0 );
mIMEdit = new KLineEdit( this );
- connect( mIMEdit, SIGNAL( textChanged( const QString& ) ),
- SLOT( textChanged( const QString& ) ) );
- connect( mIMEdit, SIGNAL( textChanged( const QString& ) ),
- SIGNAL( modified() ) );
+ connect( mIMEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SLOT( textChanged( const TQString& ) ) );
+ connect( mIMEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SIGNAL( modified() ) );
label->setBuddy( mIMEdit );
topLayout->addWidget( mIMEdit, 0, 1 );
- mEditButton = new QPushButton( i18n( "Edit IM Addresses..." ), this);
- connect( mEditButton, SIGNAL( clicked() ), SLOT( edit() ) );
+ mEditButton = new TQPushButton( i18n( "Edit IM Addresses..." ), this);
+ connect( mEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( edit() ) );
topLayout->addMultiCellWidget( mEditButton, 1, 1, 0, 1 );
topLayout->activate();
@@ -77,14 +77,14 @@ void IMEditWidget::setReadOnly( bool readOnly )
mReadOnly = readOnly;
// mEditButton->setEnabled( !readOnly );
}
-void IMEditWidget::setPreferredIM( const QString &addr )
+void IMEditWidget::setPreferredIM( const TQString &addr )
{
bool blocked = mIMEdit->signalsBlocked();
mIMEdit->blockSignals( true );
mIMEdit->setText( addr );
mIMEdit->blockSignals( blocked );
}
-void IMEditWidget::setIMs( const QStringList &list )
+void IMEditWidget::setIMs( const TQStringList &list )
{
mIMList = list;
@@ -97,7 +97,7 @@ void IMEditWidget::setIMs( const QStringList &list )
mIMEdit->blockSignals( blocked );
}
-QStringList IMEditWidget::ims()
+TQStringList IMEditWidget::ims()
{
if ( mIMEdit->text().isEmpty() ) {
if ( mIMList.count() > 0 )
@@ -111,7 +111,7 @@ QStringList IMEditWidget::ims()
return mIMList;
}
-QString IMEditWidget::preferredIM()
+TQString IMEditWidget::preferredIM()
{
return mIMEdit->text();
}
@@ -132,7 +132,7 @@ void IMEditWidget::edit()
}
}
-void IMEditWidget::textChanged( const QString &text )
+void IMEditWidget::textChanged( const TQString &text )
{
if ( mIMList.count() > 0 )
mIMList.remove( mIMList.begin() );