author | zautrix <zautrix> | 2004-07-03 16:54:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 16:54:31 (UTC) |
commit | 6c035951faeaea6d7651e5fd028c7fd2a674cdfc (patch) (side-by-side diff) | |
tree | f55c6dd1f4457a5c3d387e6511d596438988955e /libkdepim/addresseeview.cpp | |
parent | 1da48d95d970233f0d1ea9a7fba5c98cfcf24798 (diff) | |
download | kdepimpi-6c035951faeaea6d7651e5fd028c7fd2a674cdfc.zip kdepimpi-6c035951faeaea6d7651e5fd028c7fd2a674cdfc.tar.gz kdepimpi-6c035951faeaea6d7651e5fd028c7fd2a674cdfc.tar.bz2 |
Added connection to KM when clicking on email
-rw-r--r-- | libkdepim/addresseeview.cpp | 18 |
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 @@ -35,6 +35,13 @@ #include "addresseeview.h" + +#ifndef DESKTOP_VERSION +#include <qtopia/qcopenvelope_qws.h> +#endif + + + using namespace KPIM; AddresseeView::AddresseeView( QWidget *parent, const char *name ) @@ -53,7 +60,15 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name ) //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; @@ -85,8 +100,9 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr ) 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" ); |