diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-20 16:27:27 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-20 16:27:27 -0600 |
commit | 94273bcb909fac42ef9427e3d8a614cab8c29c66 (patch) | |
tree | 91b99186971ecb475db3ca41b1b12df24029e389 /kaddressbook/viewconfigurefieldspage.cpp | |
parent | 41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff) | |
download | tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip |
Rename KABC namespace
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 ); |