From ba25812361114b7cf059a3a1fb3aed42f8a7ebde Mon Sep 17 00:00:00 2001 From: eilers Date: Wed, 06 Aug 2003 12:21:16 +0000 Subject: Cardview update: It is more compressed. Pending: Add pricture for work- and home address.. --- diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index 3473baa..e34feeb 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp @@ -474,7 +474,7 @@ QString OContact::toRichText() const // business address if ( !businessStreet().isEmpty() || !businessCity().isEmpty() || !businessZip().isEmpty() || !businessCountry().isEmpty() ) { - text += QObject::tr( "

Work Address:" ); + text += QObject::tr( "
Work Address:" ); marker = true; } @@ -490,11 +490,11 @@ QString OContact::toRichText() const text += "
" + Qtopia::escapeString(value) + " "; marker = true; - } else - text += "
"; - + } if ( !(value = businessCity()).isEmpty() ) { marker = true; + if ( businessZip().isEmpty() && !businessStreet().isEmpty() ) + text += "
"; text += Qtopia::escapeString(value); if ( state ) text += ", " + Qtopia::escapeString(state); @@ -566,12 +566,12 @@ QString OContact::toRichText() const marker = true; } - text += "
"; + // text += "
"; // home address if ( !homeStreet().isEmpty() || !homeCity().isEmpty() || !homeZip().isEmpty() || !homeCountry().isEmpty() ) { - text += QObject::tr( "

Home Address:" ); + text += QObject::tr( "
Home Address:" ); marker = true; } @@ -586,11 +586,11 @@ QString OContact::toRichText() const if ( !(value = homeZip()).isEmpty() ){ text += "
" + Qtopia::escapeString(value) + " "; marker = true; - } else - text += "
"; - + } if ( !(value = homeCity()).isEmpty() ) { marker = true; + if ( homeZip().isEmpty() && !homeStreet().isEmpty() ) + text += "
"; text += Qtopia::escapeString(value); if ( !state.isEmpty() ) text += ", " + Qtopia::escapeString(state); diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index 3473baa..e34feeb 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp @@ -474,7 +474,7 @@ QString OContact::toRichText() const // business address if ( !businessStreet().isEmpty() || !businessCity().isEmpty() || !businessZip().isEmpty() || !businessCountry().isEmpty() ) { - text += QObject::tr( "

Work Address:" ); + text += QObject::tr( "
Work Address:" ); marker = true; } @@ -490,11 +490,11 @@ QString OContact::toRichText() const text += "
" + Qtopia::escapeString(value) + " "; marker = true; - } else - text += "
"; - + } if ( !(value = businessCity()).isEmpty() ) { marker = true; + if ( businessZip().isEmpty() && !businessStreet().isEmpty() ) + text += "
"; text += Qtopia::escapeString(value); if ( state ) text += ", " + Qtopia::escapeString(state); @@ -566,12 +566,12 @@ QString OContact::toRichText() const marker = true; } - text += "
"; + // text += "
"; // home address if ( !homeStreet().isEmpty() || !homeCity().isEmpty() || !homeZip().isEmpty() || !homeCountry().isEmpty() ) { - text += QObject::tr( "

Home Address:" ); + text += QObject::tr( "
Home Address:" ); marker = true; } @@ -586,11 +586,11 @@ QString OContact::toRichText() const if ( !(value = homeZip()).isEmpty() ){ text += "
" + Qtopia::escapeString(value) + " "; marker = true; - } else - text += "
"; - + } if ( !(value = homeCity()).isEmpty() ) { marker = true; + if ( homeZip().isEmpty() && !homeStreet().isEmpty() ) + text += "
"; text += Qtopia::escapeString(value); if ( !state.isEmpty() ) text += ", " + Qtopia::escapeString(state); -- cgit v0.9.0.2