author | zautrix <zautrix> | 2005-06-03 13:37:47 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 13:37:47 (UTC) |
commit | 7aa43257ffb63e772342f24c1f7945e285171ee6 (patch) (unidiff) | |
tree | 7d68896cbbd5ae699bce7905e17824939022a488 | |
parent | f0554322b2f27e1fa60dc79a5d76ef0741bf3423 (diff) | |
download | kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.zip kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.tar.gz kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.tar.bz2 |
export kapi fix
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 4 | ||||
-rw-r--r-- | kabc/addresseeview.cpp | 6 | ||||
-rw-r--r-- | kaddressbook/xxportselectdialog.cpp | 4 |
3 files changed, 14 insertions, 0 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 | |||
@@ -7,6 +7,10 @@ Bugfix: | |||
7 | Fixed a problem with agenda popup on the desktop in KO/Pi. | 7 | Fixed a problem with agenda popup on the desktop in KO/Pi. |
8 | Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization. | 8 | Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization. |
9 | Added config option to not display completed todos in agenda view. | 9 | Added config option to not display completed todos in agenda view. |
10 | Addressee view is now using the formatted name, if defined. | ||
11 | That makes it possible to display "lastname, firstname" in that view now. | ||
12 | To set the formatted name for all contacts, please use menu: | ||
13 | Edit->Change->Set formatted name. | ||
10 | 14 | ||
11 | ********** VERSION 2.1.4 ************ | 15 | ********** VERSION 2.1.4 ************ |
12 | 16 | ||
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp index 9118c3d..667a5e2 100644 --- a/kabc/addresseeview.cpp +++ b/kabc/addresseeview.cpp | |||
@@ -43,6 +43,7 @@ | |||
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | 45 | ||
46 | #include <qstylesheet.h> | ||
46 | #include "externalapphandler.h" | 47 | #include "externalapphandler.h" |
47 | #include <kabc/addresseeview.h> | 48 | #include <kabc/addresseeview.h> |
48 | 49 | ||
@@ -70,6 +71,7 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name ) | |||
70 | //US QStyleSheetItem *link = sheet->item( "a" ); | 71 | //US QStyleSheetItem *link = sheet->item( "a" ); |
71 | //US link->setColor( KGlobalSettings::linkColor() ); | 72 | //US link->setColor( KGlobalSettings::linkColor() ); |
72 | 73 | ||
74 | |||
73 | } | 75 | } |
74 | void AddresseeView::printMe() | 76 | void AddresseeView::printMe() |
75 | { | 77 | { |
@@ -125,8 +127,12 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) | |||
125 | setText( QString::null); | 127 | setText( QString::null); |
126 | return; | 128 | return; |
127 | } | 129 | } |
130 | #if 0 | ||
128 | QString name = ( mAddressee.assembledName().isEmpty() ? | 131 | QString name = ( mAddressee.assembledName().isEmpty() ? |
129 | mAddressee.formattedName() : mAddressee.assembledName() ); | 132 | mAddressee.formattedName() : mAddressee.assembledName() ); |
133 | #endif | ||
134 | |||
135 | QString name = mAddressee.realName(); | ||
130 | 136 | ||
131 | QString dynamicPart; | 137 | QString dynamicPart; |
132 | 138 | ||
diff --git a/kaddressbook/xxportselectdialog.cpp b/kaddressbook/xxportselectdialog.cpp index e134f97..278cab0 100644 --- a/kaddressbook/xxportselectdialog.cpp +++ b/kaddressbook/xxportselectdialog.cpp | |||
@@ -159,6 +159,7 @@ KABC::AddresseeList XXPortSelectDialog::contacts() | |||
159 | for ( it = selection.begin(); it != selection.end(); ++it ) { | 159 | for ( it = selection.begin(); it != selection.end(); ++it ) { |
160 | KABC::Addressee addr = mCore->addressBook()->findByUid( *it ); | 160 | KABC::Addressee addr = mCore->addressBook()->findByUid( *it ); |
161 | if ( !addr.isEmpty() ) | 161 | if ( !addr.isEmpty() ) |
162 | if ( addr.uid().left( 19 ) != QString("last-syncAddressee-") ) | ||
162 | list.append( addr ); | 163 | list.append( addr ); |
163 | } | 164 | } |
164 | } else if ( mUseFilters->isChecked() ) { | 165 | } else if ( mUseFilters->isChecked() ) { |
@@ -171,6 +172,7 @@ KABC::AddresseeList XXPortSelectDialog::contacts() | |||
171 | KABC::AddressBook::Iterator it; | 172 | KABC::AddressBook::Iterator it; |
172 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) { | 173 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) { |
173 | if ( (*filterIt).filterAddressee( *it ) ) | 174 | if ( (*filterIt).filterAddressee( *it ) ) |
175 | if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) | ||
174 | list.append( *it ); | 176 | list.append( *it ); |
175 | } | 177 | } |
176 | } else if ( mUseCategories->isChecked() ) { | 178 | } else if ( mUseCategories->isChecked() ) { |
@@ -181,6 +183,7 @@ KABC::AddresseeList XXPortSelectDialog::contacts() | |||
181 | QStringList::Iterator tmpIt; | 183 | QStringList::Iterator tmpIt; |
182 | for ( tmpIt = tmp.begin(); tmpIt != tmp.end(); ++tmpIt ) | 184 | for ( tmpIt = tmp.begin(); tmpIt != tmp.end(); ++tmpIt ) |
183 | if ( categorieList.contains( *tmpIt ) ) { | 185 | if ( categorieList.contains( *tmpIt ) ) { |
186 | if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) | ||
184 | list.append( *it ); | 187 | list.append( *it ); |
185 | break; | 188 | break; |
186 | } | 189 | } |
@@ -189,6 +192,7 @@ KABC::AddresseeList XXPortSelectDialog::contacts() | |||
189 | // create a string list of all entries: | 192 | // create a string list of all entries: |
190 | KABC::AddressBook::Iterator it; | 193 | KABC::AddressBook::Iterator it; |
191 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) | 194 | for ( it = mCore->addressBook()->begin(); it != mCore->addressBook()->end(); ++it ) |
195 | if ((*it).uid().left( 19 ) != QString("last-syncAddressee-") ) | ||
192 | list.append( *it ); | 196 | list.append( *it ); |
193 | } | 197 | } |
194 | 198 | ||