diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/imeditwidget.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/imeditwidget.cpp')
-rw-r--r-- | kaddressbook/imeditwidget.cpp | 46 |
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() ); |