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 | |
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 | ||||
-rw-r--r-- | libkdepim/addresseeview.h | 2 | ||||
-rw-r--r-- | libkdepim/kincidenceformatter.cpp | 6 |
3 files changed, 22 insertions, 4 deletions
diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp index deafd34..70fc57c 100644 --- a/libkdepim/addresseeview.cpp +++ b/libkdepim/addresseeview.cpp @@ -37,2 +37,9 @@ + +#ifndef DESKTOP_VERSION +#include <qtopia/qcopenvelope_qws.h> +#endif + + + using namespace KPIM; @@ -55,3 +62,11 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name ) } +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 ) @@ -87,4 +102,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr ) "<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 ) diff --git a/libkdepim/addresseeview.h b/libkdepim/addresseeview.h index 598ef0d..1865fc4 100644 --- a/libkdepim/addresseeview.h +++ b/libkdepim/addresseeview.h @@ -43,3 +43,3 @@ class AddresseeView : public QTextBrowser void setAddressee( const KABC::Addressee& addr ); - + void setSource(const QString& n); /** diff --git a/libkdepim/kincidenceformatter.cpp b/libkdepim/kincidenceformatter.cpp index 4815519..2f41409 100644 --- a/libkdepim/kincidenceformatter.cpp +++ b/libkdepim/kincidenceformatter.cpp @@ -250,3 +250,4 @@ void KIncidenceFormatter::formatAttendees(Incidence *event) mText.append("<ul><li>"); -#ifndef KORG_NOKABC +#if 0 + //ndef KORG_NOKABC @@ -277,3 +278,4 @@ void KIncidenceFormatter::formatAttendees(Incidence *event) for(a=attendees.first();a;a=attendees.next()) { -#ifndef KORG_NOKABC +#if 0 +//ndef KORG_NOKABC if (a->name().isEmpty()) { |