-rw-r--r-- | kabc/addresseedialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kabc/addresseedialog.cpp b/kabc/addresseedialog.cpp index ae67968..9ea9d04 100644 --- a/kabc/addresseedialog.cpp +++ b/kabc/addresseedialog.cpp | |||
@@ -32,25 +32,25 @@ | |||
32 | 32 | ||
33 | #include "addresseedialog.h" | 33 | #include "addresseedialog.h" |
34 | //#include "addresseedialog.moc" | 34 | //#include "addresseedialog.moc" |
35 | 35 | ||
36 | using namespace KABC; | 36 | using namespace KABC; |
37 | 37 | ||
38 | AddresseeItem::AddresseeItem( QListView *parent, const Addressee &addressee ) : | 38 | AddresseeItem::AddresseeItem( QListView *parent, const Addressee &addressee ) : |
39 | QListViewItem( parent ), | 39 | QListViewItem( parent ), |
40 | mAddressee( addressee ) | 40 | mAddressee( addressee ) |
41 | { | 41 | { |
42 | QString name = addressee.familyName()+", "+ addressee.givenName(); | 42 | QString name = addressee.familyName()+", "+ addressee.givenName(); |
43 | if ( name.length() == 2 ) | 43 | if ( name.length() == 2 ) |
44 | name = addressee.realName(); | 44 | name = addressee.organization(); |
45 | setText( Name,name); | 45 | setText( Name,name); |
46 | setText( Email, addressee.preferredEmail() ); | 46 | setText( Email, addressee.preferredEmail() ); |
47 | } | 47 | } |
48 | 48 | ||
49 | QString AddresseeItem::key( int column, bool ) const | 49 | QString AddresseeItem::key( int column, bool ) const |
50 | { | 50 | { |
51 | 51 | ||
52 | if (column == Email) { | 52 | if (column == Email) { |
53 | QString value = text(Email); | 53 | QString value = text(Email); |
54 | int val = value.findRev("@"); | 54 | int val = value.findRev("@"); |
55 | return value.mid( val) + value.left( val ); | 55 | return value.mid( val) + value.left( val ); |
56 | } | 56 | } |