diff options
Diffstat (limited to 'kaddressbook/phoneeditwidget.cpp')
-rw-r--r-- | kaddressbook/phoneeditwidget.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp index 70381d8e7..80f45cff5 100644 --- a/kaddressbook/phoneeditwidget.cpp +++ b/kaddressbook/phoneeditwidget.cpp @@ -48,9 +48,9 @@ PhoneTypeCombo::PhoneTypeCombo( TQWidget *parent ) : KComboBox( parent, "TypeCombo" ), - mType( KABC::PhoneNumber::Home ), + mType( TDEABC::PhoneNumber::Home ), mLastSelected( 0 ), - mTypeList( KABC::PhoneNumber::typeList() ) + mTypeList( TDEABC::PhoneNumber::typeList() ) { mTypeList.append( -1 ); // Others... @@ -91,7 +91,7 @@ void PhoneTypeCombo::update() if ( *it == -1 ) { // "Other..." entry insertItem( i18n( "Other..." ) ); } else { - KABC::PhoneNumber number; + TDEABC::PhoneNumber number; number.setType( *it ); insertItem( number.typeLabel() ); } @@ -141,7 +141,7 @@ PhoneNumberWidget::PhoneNumberWidget( TQWidget *parent ) connect( mNumberEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SIGNAL( modified() ) ); } -void PhoneNumberWidget::setNumber( const KABC::PhoneNumber &number ) +void PhoneNumberWidget::setNumber( const TDEABC::PhoneNumber &number ) { mNumber = number; @@ -149,9 +149,9 @@ void PhoneNumberWidget::setNumber( const KABC::PhoneNumber &number ) mNumberEdit->setText( number.number() ); } -KABC::PhoneNumber PhoneNumberWidget::number() const +TDEABC::PhoneNumber PhoneNumberWidget::number() const { - KABC::PhoneNumber number( mNumber ); + TDEABC::PhoneNumber number( mNumber ); number.setType( mTypeCombo->type() ); number.setNumber( mNumberEdit->text() ); @@ -207,28 +207,28 @@ void PhoneEditWidget::setReadOnly( bool readOnly ) } } -void PhoneEditWidget::setPhoneNumbers( const KABC::PhoneNumber::List &list ) +void PhoneEditWidget::setPhoneNumbers( const TDEABC::PhoneNumber::List &list ) { mPhoneNumberList = list; - KABC::PhoneNumber::TypeList types; - types << KABC::PhoneNumber::Home; - types << KABC::PhoneNumber::Work; - types << KABC::PhoneNumber::Cell; + TDEABC::PhoneNumber::TypeList types; + types << TDEABC::PhoneNumber::Home; + types << TDEABC::PhoneNumber::Work; + types << TDEABC::PhoneNumber::Cell; // add an empty entry per default if ( mPhoneNumberList.count() < 3 ) for ( int i = mPhoneNumberList.count(); i < 3; ++i ) - mPhoneNumberList.append( KABC::PhoneNumber( "", types[ i ] ) ); + mPhoneNumberList.append( TDEABC::PhoneNumber( "", types[ i ] ) ); recreateNumberWidgets(); } -KABC::PhoneNumber::List PhoneEditWidget::phoneNumbers() const +TDEABC::PhoneNumber::List PhoneEditWidget::phoneNumbers() const { - KABC::PhoneNumber::List list; + TDEABC::PhoneNumber::List list; - KABC::PhoneNumber::List::ConstIterator it; + TDEABC::PhoneNumber::List::ConstIterator it; for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it ) if ( !(*it).number().isEmpty() ) list.append( *it ); @@ -244,7 +244,7 @@ void PhoneEditWidget::changed() void PhoneEditWidget::add() { - mPhoneNumberList.append( KABC::PhoneNumber() ); + mPhoneNumberList.append( TDEABC::PhoneNumber() ); recreateNumberWidgets(); } @@ -265,7 +265,7 @@ void PhoneEditWidget::recreateNumberWidgets() } mWidgets.clear(); - KABC::PhoneNumber::List::ConstIterator it; + TDEABC::PhoneNumber::List::ConstIterator it; int counter = 0; for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it ) { PhoneNumberWidget *wdg = new PhoneNumberWidget( this ); @@ -307,19 +307,19 @@ PhoneTypeDialog::PhoneTypeDialog( int type, TQWidget *parent ) layout->addWidget( mGroup ); // fill widgets - mTypeList = KABC::PhoneNumber::typeList(); - mTypeList.remove( KABC::PhoneNumber::Pref ); + mTypeList = TDEABC::PhoneNumber::typeList(); + mTypeList.remove( TDEABC::PhoneNumber::Pref ); - KABC::PhoneNumber::TypeList::ConstIterator it; + TDEABC::PhoneNumber::TypeList::ConstIterator it; for ( it = mTypeList.begin(); it != mTypeList.end(); ++it ) - new TQCheckBox( KABC::PhoneNumber::typeLabel( *it ), mGroup ); + new TQCheckBox( TDEABC::PhoneNumber::typeLabel( *it ), mGroup ); for ( int i = 0; i < mGroup->count(); ++i ) { TQCheckBox *box = (TQCheckBox*)mGroup->find( i ); box->setChecked( mType & mTypeList[ i ] ); } - mPreferredBox->setChecked( mType & KABC::PhoneNumber::Pref ); + mPreferredBox->setChecked( mType & TDEABC::PhoneNumber::Pref ); } int PhoneTypeDialog::type() const @@ -333,9 +333,9 @@ int PhoneTypeDialog::type() const } if ( mPreferredBox->isChecked() ) - type = type | KABC::PhoneNumber::Pref; + type = type | TDEABC::PhoneNumber::Pref; else - type = type & ~KABC::PhoneNumber::Pref; + type = type & ~TDEABC::PhoneNumber::Pref; return type; } |