From e487238141c57df63252e41a47b409cbb1f9ae83 Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 09 Dec 2002 15:08:30 +0000 Subject: Added preview for default email and all email --- (limited to 'libopie') diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index efa2777..6aec62e 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp @@ -502,9 +502,13 @@ QString OContact::toRichText() const // the others... QString str; + QString defEmail = defaultEmail(); + if ( !defEmail.isEmpty() ) + text += "" + QObject::tr("Default Email: ") + "" + + Qtopia::escapeString(defEmail) + "
"; str = emails(); - if ( !str.isEmpty() ) - text += "" + QObject::tr("Email Addresses: ") + "" + if ( !str.isEmpty() && ( str != defEmail ) ) + text += "" + QObject::tr("All Emails: ") + "" + Qtopia::escapeString(str) + "
"; str = homePhone(); if ( !str.isEmpty() ) -- cgit v0.9.0.2