summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/addresseeview.cpp18
-rw-r--r--libkdepim/addresseeview.h2
-rw-r--r--libkdepim/kincidenceformatter.cpp6
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
@@ -36,4 +36,11 @@
#include "addresseeview.h"
+
+#ifndef DESKTOP_VERSION
+#include <qtopia/qcopenvelope_qws.h>
+#endif
+
+
+
using namespace KPIM;
@@ -54,5 +61,13 @@ 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 )
{
@@ -86,6 +101,7 @@ void AddresseeView::setAddressee( const KABC::Addressee& addr )
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 );
diff --git a/libkdepim/addresseeview.h b/libkdepim/addresseeview.h
index 598ef0d..1865fc4 100644
--- a/libkdepim/addresseeview.h
+++ b/libkdepim/addresseeview.h
@@ -42,5 +42,5 @@ class AddresseeView : public QTextBrowser
*/
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
@@ -249,5 +249,6 @@ void KIncidenceFormatter::formatAttendees(Incidence *event)
addTag("h3",i18n("Organizer"));
mText.append("<ul><li>");
-#ifndef KORG_NOKABC
+#if 0
+ //ndef KORG_NOKABC
KABC::AddressBook *add_book = KABC::StdAddressBook::self();
@@ -276,5 +277,6 @@ void KIncidenceFormatter::formatAttendees(Incidence *event)
mText.append("<ul>");
for(a=attendees.first();a;a=attendees.next()) {
-#ifndef KORG_NOKABC
+#if 0
+//ndef KORG_NOKABC
if (a->name().isEmpty()) {
addressList = add_book->findByEmail(a->email());