From 6c035951faeaea6d7651e5fd028c7fd2a674cdfc Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 03 Jul 2004 16:54:31 +0000 Subject: Added connection to KM when clicking on email --- 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 +#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( "%1" - "%3" ) + " \">%4" ) .arg( type ) + .arg( name ) .arg( *emailIt ) .arg( *emailIt ); type = i18n( "Other" ); diff --git a/libkdepim/addresseeview.h b/libkdepim/addresseeview.h index 598ef0d..1865fc4 100644 --- a/libkdepim/addresseeview.h +++ b/libkdepim/addresseeview.h @@ -41,7 +41,7 @@ class AddresseeView : public QTextBrowser @param addr The addressee object. */ void setAddressee( const KABC::Addressee& addr ); - + void setSource(const QString& n); /** Returns the current addressee object. */ diff --git a/libkdepim/kincidenceformatter.cpp b/libkdepim/kincidenceformatter.cpp index 4815519..2f41409 100644 --- a/libkdepim/kincidenceformatter.cpp +++ b/libkdepim/kincidenceformatter.cpp @@ -248,7 +248,8 @@ void KIncidenceFormatter::formatAttendees(Incidence *event) QString iconPath = KGlobal::iconLoader()->iconPath("mailappt",KIcon::Small); addTag("h3",i18n("Organizer")); mText.append("