summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventviewer.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koeventviewer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewer.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp
index f6c252b..2d0bfff 100644
--- a/korganizer/koeventviewer.cpp
+++ b/korganizer/koeventviewer.cpp
@@ -112,2 +112,12 @@ void KOEventViewer::setSource(const QString& n)
+ if ( n.left(8) == "todo_uid" ) {
+ int midstr = 9;
+#ifdef DESKTOP_VERSION
+ midstr = 11;
+#endif
+ qDebug("-%s- ", n.mid(midstr).latin1());
+ emit showIncidence( n.mid(midstr) );
+ return;
+ }
+
if ( n.left(3) == "uid" )
@@ -532,3 +542,11 @@ void KOEventViewer::appendTodo(Todo *event, int mode )
addTag("b",i18n("Parent todo:<br>"));
- mText.append(deTag(event->relatedTo()->summary())+" [" +QString::number(event->relatedTo()->priority()) + "/" + QString::number(((Todo*)event->relatedTo())->percentComplete())+"%] <br>");
+
+ QString t_name = "[" +QString::number(event->relatedTo()->priority()) + "/" + QString::number(((Todo*)event->relatedTo())->percentComplete())+"%] ";// +event->relatedTo()->summary());
+
+ mText += t_name;
+ mText += "<a href=\"todo_uid:" + event->relatedTo()->uid() + "\">";
+ mText += deTag(event->relatedTo()->summary());
+ mText += "</a><br>";
+
+ // mText.append(deTag("[" +QString::number(event->relatedTo()->priority()) + "/" + QString::number(((Todo*)event->relatedTo())->percentComplete())+"%] " +event->relatedTo()->summary()) +"<br>");
}
@@ -539,3 +557,7 @@ void KOEventViewer::appendTodo(Todo *event, int mode )
for (to=Relations.first();to;to=Relations.next()) {
- mText.append( deTag(to->summary())+" [" +QString::number(to->priority()) + "/" + QString::number(((Todo*)to)->percentComplete())+"%]<br>");
+ QString t_name = "[" +QString::number(((Todo*)to)->priority()) + "/" + QString::number(((Todo*)to)->percentComplete())+"%] ";// +to->relatedTo()->summary());
+ mText += t_name;
+ mText += "<a href=\"todo_uid:" + to->uid() + "\">";
+ mText += deTag(to->summary());
+ mText += "</a><br>";