From 24344a3c43b20e1cd8b9ecbf73031b744cdf8197 Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 17 Feb 2003 14:21:01 +0000 Subject: Cardview improved .. --- (limited to 'libopie/pim') diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index 9230b8b..178559b 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp @@ -476,6 +476,8 @@ QString OContact::toRichText() const if ( !(value = businessStreet()).isEmpty() ) text += Qtopia::escapeString(value) + "
"; state = businessState(); + if ( !(value = businessZip()).isEmpty() ) + text += Qtopia::escapeString(value) + " "; if ( !(value = businessCity()).isEmpty() ) { text += Qtopia::escapeString(value); if ( state ) @@ -483,8 +485,7 @@ QString OContact::toRichText() const text += "
"; } else if ( !state.isEmpty() ) text += Qtopia::escapeString(state) + "
"; - if ( !(value = businessZip()).isEmpty() ) - text += Qtopia::escapeString(value) + "
"; + if ( !(value = businessCountry()).isEmpty() ) text += Qtopia::escapeString(value) + "
"; @@ -537,6 +538,8 @@ QString OContact::toRichText() const if ( !(value = homeStreet()).isEmpty() ) text += Qtopia::escapeString(value) + "
"; state = homeState(); + if ( !(value = homeZip()).isEmpty() ) + text += Qtopia::escapeString(value) + " "; if ( !(value = homeCity()).isEmpty() ) { text += Qtopia::escapeString(value); if ( !state.isEmpty() ) @@ -544,8 +547,6 @@ QString OContact::toRichText() const text += "
"; } else if (!state.isEmpty()) text += Qtopia::escapeString(state) + "
"; - if ( !(value = homeZip()).isEmpty() ) - text += Qtopia::escapeString(value) + "
"; if ( !(value = homeCountry()).isEmpty() ) text += Qtopia::escapeString(value) + "
"; @@ -633,7 +634,7 @@ QString OContact::toRichText() const } // notes last - if ( (value = notes()) ) { + if ( !(value = notes()).isEmpty() ) { text += "

" + QObject::tr( "Notes:") + " "; QRegExp reg("\n"); -- cgit v0.9.0.2