summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt4
-rw-r--r--kabc/addresseeview.cpp6
-rw-r--r--kaddressbook/xxportselectdialog.cpp12
3 files changed, 18 insertions, 4 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index 3532084..93edc59 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -9,2 +9,6 @@ Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization.
Added config option to not display completed todos in agenda view.
+Addressee view is now using the formatted name, if defined.
+That makes it possible to display "lastname, firstname" in that view now.
+To set the formatted name for all contacts, please use menu:
+Edit->Change->Set formatted name.
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp
index 9118c3d..667a5e2 100644
--- a/kabc/addresseeview.cpp
+++ b/kabc/addresseeview.cpp
@@ -45,2 +45,3 @@
+#include <qstylesheet.h>
#include "externalapphandler.h"
@@ -72,2 +73,3 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name )
+
}
@@ -127,4 +129,8 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee )
}
+#if 0
QString name = ( mAddressee.assembledName().isEmpty() ?
mAddressee.formattedName() : mAddressee.assembledName() );
+#endif
+
+ QString name = mAddressee.realName();
diff --git a/kaddressbook/xxportselectdialog.cpp b/kaddressbook/xxportselectdialog.cpp
index e134f97..278cab0 100644
--- a/kaddressbook/xxportselectdialog.cpp
+++ b/kaddressbook/xxportselectdialog.cpp
@@ -161,3 +161,4 @@ KABC::AddresseeList XXPortSelectDialog::contacts()
if ( !addr.isEmpty() )
- list.append( addr );
+ if ( addr.uid().left( 19 ) != QString("last-syncAddressee-") )
+ list.append( addr );
}
@@ -173,3 +174,4 @@ KABC::AddresseeList XXPortSelectDialog::contacts()
if ( (*filterIt).filterAddressee( *it ) )
- list.append( *it );
+ if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") )
+ list.append( *it );
}
@@ -183,3 +185,4 @@ KABC::AddresseeList XXPortSelectDialog::contacts()
if ( categorieList.contains( *tmpIt ) ) {
- list.append( *it );
+ if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") )
+ list.append( *it );
break;
@@ -191,3 +194,4 @@ KABC::AddresseeList XXPortSelectDialog::contacts()
for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it )
- list.append( *it );
+ if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") )
+ list.append( *it );
}