-rw-r--r-- | kabc/addresseeview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp index 9118c3d..667a5e2 100644 --- a/kabc/addresseeview.cpp +++ b/kabc/addresseeview.cpp | |||
@@ -40,12 +40,13 @@ | |||
40 | #include <qpaintdevicemetrics.h> | 40 | #include <qpaintdevicemetrics.h> |
41 | #include <qprinter.h> | 41 | #include <qprinter.h> |
42 | #include <qpainter.h> | 42 | #include <qpainter.h> |
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 | ||
49 | 50 | ||
50 | //US #ifndef DESKTOP_VERSION | 51 | //US #ifndef DESKTOP_VERSION |
51 | //US #include <qtopia/qcopenvelope_qws.h> | 52 | //US #include <qtopia/qcopenvelope_qws.h> |
@@ -67,12 +68,13 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name ) | |||
67 | //setHScrollBarMode( QScrollView::AlwaysOff ); | 68 | //setHScrollBarMode( QScrollView::AlwaysOff ); |
68 | 69 | ||
69 | //US QStyleSheet *sheet = styleSheet(); | 70 | //US QStyleSheet *sheet = styleSheet(); |
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 | { |
76 | #ifdef DESKTOP_VERSION | 78 | #ifdef DESKTOP_VERSION |
77 | QPrinter printer; | 79 | QPrinter printer; |
78 | if (!printer.setup() ) | 80 | if (!printer.setup() ) |
@@ -122,14 +124,18 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) | |||
122 | //setText( QString::null ); | 124 | //setText( QString::null ); |
123 | 125 | ||
124 | if ( mAddressee.isEmpty() ) { | 126 | if ( mAddressee.isEmpty() ) { |
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 | ||
133 | dynamicPart += getPhoneNumbers( mAddressee.phoneNumbers(),true ); | 139 | dynamicPart += getPhoneNumbers( mAddressee.phoneNumbers(),true ); |
134 | QStringList emails = mAddressee.emails(); | 140 | QStringList emails = mAddressee.emails(); |
135 | QStringList::ConstIterator emailIt; | 141 | QStringList::ConstIterator emailIt; |