summaryrefslogtreecommitdiffabout
path: root/libkdepim/addresseeview.cpp
Side-by-side diff
Diffstat (limited to 'libkdepim/addresseeview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/addresseeview.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp
index deafd34..70fc57c 100644
--- a/libkdepim/addresseeview.cpp
+++ b/libkdepim/addresseeview.cpp
@@ -32,12 +32,19 @@
#include <qfile.h>
#include <qapplication.h>
#include "addresseeview.h"
+
+#ifndef DESKTOP_VERSION
+#include <qtopia/qcopenvelope_qws.h>
+#endif
+
+
+
using namespace KPIM;
AddresseeView::AddresseeView( QWidget *parent, const char *name )
//US : KTextBrowser( parent, name )
: QTextBrowser( parent, name )
@@ -50,13 +57,21 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name )
//US QStyleSheet *sheet = styleSheet();
//US QStyleSheetItem *link = sheet->item( "a" );
//US link->setColor( KGlobalSettings::linkColor() );
}
+void AddresseeView::setSource(const QString& n)
+{
+ //qDebug("********AddresseeView::setSource %s", n.mid(7).latin1());
+#ifndef DESKTOP_VERSION
+ QCopEnvelope e("QPE/Application/kmpi", "newMail(QString)");
+ e << n.mid(7);
+#endif
+}
void AddresseeView::setAddressee( const KABC::Addressee& addr )
{
mAddressee = addr;
// clear view
setText( QString::null );
@@ -82,14 +97,15 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr )
QStringList emails = mAddressee.emails();
QStringList::ConstIterator emailIt;
QString type = i18n( "Email" );
for ( emailIt = emails.begin(); emailIt != emails.end(); ++emailIt ) {
dynamicPart += QString(
"<tr><td align=\"right\"><b>%1</b></td>"
- "<td align=\"left\"><a href=\"mailto:%2\">%3</a></td></tr>" )
+ "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" )
.arg( type )
+ .arg( name )
.arg( *emailIt )
.arg( *emailIt );
type = i18n( "Other" );
}
if ( !mAddressee.url().url().isEmpty() ) {