diff options
Diffstat (limited to 'kaddressbook/viewconfigurefieldspage.cpp')
-rw-r--r-- | kaddressbook/viewconfigurefieldspage.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kaddressbook/viewconfigurefieldspage.cpp b/kaddressbook/viewconfigurefieldspage.cpp index cdfb28eab..828825fad 100644 --- a/kaddressbook/viewconfigurefieldspage.cpp +++ b/kaddressbook/viewconfigurefieldspage.cpp @@ -39,21 +39,21 @@ class FieldItem : public TQListBoxText { public: - FieldItem( TQListBox *parent, KABC::Field *field ) + FieldItem( TQListBox *parent, TDEABC::Field *field ) : TQListBoxText( parent, field->label() ), mField( field ) {} - FieldItem( TQListBox *parent, KABC::Field *field, int index ) + FieldItem( TQListBox *parent, TDEABC::Field *field, int index ) : TQListBoxText( parent, field->label(), parent->item( index ) ), mField( field ) {} - KABC::Field *field() { return mField; } + TDEABC::Field *field() { return mField; } private: - KABC::Field *mField; + TDEABC::Field *mField; }; -ViewConfigureFieldsPage::ViewConfigureFieldsPage( KABC::AddressBook *ab, +ViewConfigureFieldsPage::ViewConfigureFieldsPage( TDEABC::AddressBook *ab, TQWidget *parent, const char *name ) : TQWidget( parent, name ), mAddressBook( ab ) @@ -63,12 +63,12 @@ ViewConfigureFieldsPage::ViewConfigureFieldsPage( KABC::AddressBook *ab, void ViewConfigureFieldsPage::restoreSettings( TDEConfig *config ) { - KABC::Field::List fields = KABC::Field::restoreFields( config, "KABCFields" ); + TDEABC::Field::List fields = TDEABC::Field::restoreFields( config, "KABCFields" ); if ( fields.isEmpty() ) - fields = KABC::Field::defaultFields(); + fields = TDEABC::Field::defaultFields(); - KABC::Field::List::ConstIterator it; + TDEABC::Field::List::ConstIterator it; for ( it = fields.begin(); it != fields.end(); ++it ) new FieldItem( mSelectedBox, *it ); @@ -77,14 +77,14 @@ void ViewConfigureFieldsPage::restoreSettings( TDEConfig *config ) void ViewConfigureFieldsPage::saveSettings( TDEConfig *config ) { - KABC::Field::List fields; + TDEABC::Field::List fields; for ( uint i = 0; i < mSelectedBox->count(); ++i ) { FieldItem *fieldItem = static_cast<FieldItem *>( mSelectedBox->item( i ) ); fields.append( fieldItem->field() ); } - KABC::Field::saveFields( config, "KABCFields", fields ); + TDEABC::Field::saveFields( config, "KABCFields", fields ); } void ViewConfigureFieldsPage::slotShowFields( int index ) @@ -93,12 +93,12 @@ void ViewConfigureFieldsPage::slotShowFields( int index ) mUnSelectedBox->clear(); int category; - if ( index == 0 ) category = KABC::Field::All; + if ( index == 0 ) category = TDEABC::Field::All; else category = 1 << ( index - 1 ); - KABC::Field::List allFields = mAddressBook->fields( category ); + TDEABC::Field::List allFields = mAddressBook->fields( category ); - KABC::Field::List::ConstIterator it; + TDEABC::Field::List::ConstIterator it; for ( it = allFields.begin(); it != allFields.end(); ++it ) { TQListBoxItem *item = mSelectedBox->firstItem(); while( item ) { @@ -207,13 +207,13 @@ void ViewConfigureFieldsPage::initGUI() TQGridLayout *gl = new TQGridLayout( this , 6, 4, 0, KDialog::spacingHint() ); mCategoryCombo = new KComboBox( false, this ); - mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::All ) ); - mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Frequent ) ); - mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Address ) ); - mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Email ) ); - mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Personal ) ); - mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Organization ) ); - mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::CustomCategory ) ); + mCategoryCombo->insertItem( TDEABC::Field::categoryLabel( TDEABC::Field::All ) ); + mCategoryCombo->insertItem( TDEABC::Field::categoryLabel( TDEABC::Field::Frequent ) ); + mCategoryCombo->insertItem( TDEABC::Field::categoryLabel( TDEABC::Field::Address ) ); + mCategoryCombo->insertItem( TDEABC::Field::categoryLabel( TDEABC::Field::Email ) ); + mCategoryCombo->insertItem( TDEABC::Field::categoryLabel( TDEABC::Field::Personal ) ); + mCategoryCombo->insertItem( TDEABC::Field::categoryLabel( TDEABC::Field::Organization ) ); + mCategoryCombo->insertItem( TDEABC::Field::categoryLabel( TDEABC::Field::CustomCategory ) ); connect( mCategoryCombo, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotShowFields(int) ) ); gl->addWidget( mCategoryCombo, 0, 0 ); |