diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/phoneeditwidget.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/phoneeditwidget.cpp')
-rw-r--r-- | kaddressbook/phoneeditwidget.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp index 46efcba98..2587ad3e6 100644 --- a/kaddressbook/phoneeditwidget.cpp +++ b/kaddressbook/phoneeditwidget.cpp @@ -17,8 +17,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include <tqbuttongroup.h> @@ -46,8 +46,8 @@ #include "phoneeditwidget.h" -PhoneTypeCombo::PhoneTypeCombo( TQWidget *parent ) - : KComboBox( parent, "TypeCombo" ), +PhoneTypeCombo::PhoneTypeCombo( TQWidget *tqparent ) + : KComboBox( tqparent, "TypeCombo" ), mType( KABC::PhoneNumber::Home ), mLastSelected( 0 ), mTypeList( KABC::PhoneNumber::typeList() ) @@ -126,8 +126,8 @@ void PhoneTypeCombo::otherSelected() update(); } -PhoneNumberWidget::PhoneNumberWidget( TQWidget *parent ) - : TQWidget( parent ) +PhoneNumberWidget::PhoneNumberWidget( TQWidget *tqparent ) + : TQWidget( tqparent ) { TQHBoxLayout *tqlayout = new TQHBoxLayout( this, 6, 11 ); @@ -166,8 +166,8 @@ void PhoneNumberWidget::setReadOnly( bool readOnly ) } -PhoneEditWidget::PhoneEditWidget( TQWidget *parent, const char *name ) - : TQWidget( parent, name ), mReadOnly( false ) +PhoneEditWidget::PhoneEditWidget( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ), mReadOnly( false ) { TQGridLayout *tqlayout = new TQGridLayout( this, 2, 2 ); tqlayout->setSpacing( KDialog::spacingHint() ); @@ -177,7 +177,7 @@ PhoneEditWidget::PhoneEditWidget( TQWidget *parent, const char *name ) mAddButton = new TQPushButton( i18n( "Add" ), this ); mAddButton->setMaximumSize( mAddButton->tqsizeHint() ); - tqlayout->addWidget( mAddButton, 1, 0, Qt::AlignRight ); + tqlayout->addWidget( mAddButton, 1, 0, TQt::AlignRight ); mRemoveButton = new TQPushButton( i18n( "Remove" ), this ); mRemoveButton->setMaximumSize( mRemoveButton->tqsizeHint() ); @@ -291,9 +291,9 @@ void PhoneEditWidget::changed( int pos ) /////////////////////////////////////////// // PhoneTypeDialog -PhoneTypeDialog::PhoneTypeDialog( int type, TQWidget *parent ) +PhoneTypeDialog::PhoneTypeDialog( int type, TQWidget *tqparent ) : KDialogBase( Plain, i18n( "Edit Phone Number" ), Ok | Cancel, Ok, - parent, "PhoneTypeDialog", true ), + tqparent, "PhoneTypeDialog", true ), mType( type ) { TQWidget *page = plainPage(); @@ -315,7 +315,7 @@ PhoneTypeDialog::PhoneTypeDialog( int type, TQWidget *parent ) new TQCheckBox( KABC::PhoneNumber::typeLabel( *it ), mGroup ); for ( int i = 0; i < mGroup->count(); ++i ) { - TQCheckBox *box = (TQCheckBox*)mGroup->find( i ); + TQCheckBox *box = (TQCheckBox*)mGroup->tqfind( i ); box->setChecked( mType & mTypeList[ i ] ); } @@ -327,7 +327,7 @@ int PhoneTypeDialog::type() const int type = 0; for ( int i = 0; i < mGroup->count(); ++i ) { - TQCheckBox *box = (TQCheckBox*)mGroup->find( i ); + TQCheckBox *box = (TQCheckBox*)mGroup->tqfind( i ); if ( box->isChecked() ) type += mTypeList[ i ]; } |