summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-07-04 13:45:40 (UTC)
committer zautrix <zautrix>2004-07-04 13:45:40 (UTC)
commitdd549dd992f914d30c39c6c85297d689b9ac6308 (patch) (unidiff)
treed2e78db8523e169f0d4c0519a854ec1791964c23
parentf469d0adf4876004eab694cfc62f0ce7319677cd (diff)
downloadkdepimpi-dd549dd992f914d30c39c6c85297d689b9ac6308.zip
kdepimpi-dd549dd992f914d30c39c6c85297d689b9ac6308.tar.gz
kdepimpi-dd549dd992f914d30c39c6c85297d689b9ac6308.tar.bz2
For better useage on the 5500, the preferred email has to be displayed topmost
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/addresseeview.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp
index 70fc57c..71c7817 100644
--- a/libkdepim/addresseeview.cpp
+++ b/libkdepim/addresseeview.cpp
@@ -86,2 +86,17 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr )
86 86
87 QStringList emails = mAddressee.emails();
88 QStringList::ConstIterator emailIt;
89 QString type = i18n( "Email" );
90 emailIt = emails.begin();
91 if ( emailIt != emails.end() ) {
92 dynamicPart += QString(
93 "<tr><td align=\"right\"><b>%1</b></td>"
94 "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" )
95 .arg( type )
96 .arg( name )
97 .arg( *emailIt )
98 .arg( *emailIt );
99 ++emailIt;
100 }
101
87 KABC::PhoneNumber::List phones = mAddressee.phoneNumbers(); 102 KABC::PhoneNumber::List phones = mAddressee.phoneNumbers();
@@ -96,6 +111,4 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr )
96 111
97 QStringList emails = mAddressee.emails(); 112
98 QStringList::ConstIterator emailIt; 113 for ( ; emailIt != emails.end(); ++emailIt ) {
99 QString type = i18n( "Email" );
100 for ( emailIt = emails.begin(); emailIt != emails.end(); ++emailIt ) {
101 dynamicPart += QString( 114 dynamicPart += QString(
@@ -107,3 +120,2 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr )
107 .arg( *emailIt ); 120 .arg( *emailIt );
108 type = i18n( "Other" );
109 } 121 }
@@ -151,3 +163,3 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr )
151 "<tr>" 163 "<tr>"
152 "<td align=\"right\" valign=\"top\"><b>%1:</b></td>" // note label 164 "<td align=\"right\" valign=\"top\"><b>%1</b></td>" // note label
153 "<td align=\"left\">%2</td>" // note 165 "<td align=\"left\">%2</td>" // note