summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views/kaddressbookcardview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/views/kaddressbookcardview.cpp')
-rw-r--r--kaddressbook/views/kaddressbookcardview.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kaddressbook/views/kaddressbookcardview.cpp b/kaddressbook/views/kaddressbookcardview.cpp
index f60d171a3..9c6b55e10 100644
--- a/kaddressbook/views/kaddressbookcardview.cpp
+++ b/kaddressbook/views/kaddressbookcardview.cpp
@@ -52,7 +52,7 @@ class CardViewFactory : public ViewFactory
TQString description() const { return i18n( "Rolodex style cards represent contacts." ); }
- ViewConfigureWidget *configureWidget( KABC::AddressBook *ab, TQWidget *parent,
+ ViewConfigureWidget *configureWidget( TDEABC::AddressBook *ab, TQWidget *parent,
const char *name = 0 )
{
return new ConfigureCardViewWidget( ab, parent, name );
@@ -69,21 +69,21 @@ extern "C" {
class AddresseeCardViewItem : public CardViewItem
{
public:
- AddresseeCardViewItem( const KABC::Field::List &fields,
+ AddresseeCardViewItem( const TDEABC::Field::List &fields,
bool showEmptyFields,
- KABC::AddressBook *doc, const KABC::Addressee &addr,
+ TDEABC::AddressBook *doc, const TDEABC::Addressee &addr,
CardView *parent )
: CardViewItem( parent, addr.realName() ),
mFields( fields ), mShowEmptyFields( showEmptyFields ),
mDocument( doc ), mAddressee( addr )
{
if ( mFields.isEmpty() )
- mFields = KABC::Field::defaultFields();
+ mFields = TDEABC::Field::defaultFields();
refresh();
}
- const KABC::Addressee &addressee() const { return mAddressee; }
+ const TDEABC::Addressee &addressee() const { return mAddressee; }
void refresh()
{
@@ -92,8 +92,8 @@ class AddresseeCardViewItem : public CardViewItem
if ( !mAddressee.isEmpty() ) {
clearFields();
- KABC::Field::List::ConstIterator it( mFields.begin() );
- const KABC::Field::List::ConstIterator endIt( mFields.end() );
+ TDEABC::Field::List::ConstIterator it( mFields.begin() );
+ const TDEABC::Field::List::ConstIterator endIt( mFields.end() );
for ( ; it != endIt; ++it ) {
// insert empty fields or not? not doing so saves a bit of memory and CPU
// (during geometry calculations), but prevents having equally
@@ -109,10 +109,10 @@ class AddresseeCardViewItem : public CardViewItem
}
private:
- KABC::Field::List mFields;
+ TDEABC::Field::List mFields;
bool mShowEmptyFields;
- KABC::AddressBook *mDocument;
- KABC::Addressee mAddressee;
+ TDEABC::AddressBook *mDocument;
+ TDEABC::Addressee mAddressee;
};
@@ -172,10 +172,10 @@ KAddressBookCardView::~KAddressBookCardView()
{
}
-KABC::Field *KAddressBookCardView::sortField() const
+TDEABC::Field *KAddressBookCardView::sortField() const
{
// we have hardcoded sorting, so we have to return a hardcoded field :(
- return KABC::Field::allFields()[ 0 ];
+ return TDEABC::Field::allFields()[ 0 ];
}
void KAddressBookCardView::readConfig( TDEConfig *config )
@@ -271,9 +271,9 @@ void KAddressBookCardView::refresh( const TQString &uid )
mCardView->viewport()->setUpdatesEnabled( false );
mCardView->clear();
- const KABC::Addressee::List addresseeList( addressees() );
- KABC::Addressee::List::ConstIterator it( addresseeList.begin() );
- const KABC::Addressee::List::ConstIterator endIt( addresseeList.end() );
+ const TDEABC::Addressee::List addresseeList( addressees() );
+ TDEABC::Addressee::List::ConstIterator it( addresseeList.begin() );
+ const TDEABC::Addressee::List::ConstIterator endIt( addresseeList.end() );
for ( ; it != endIt; ++it ) {
aItem = new AddresseeCardViewItem( fields(), mShowEmptyFields,
core()->addressBook(), *it, mCardView );