-rw-r--r-- | korganizer/koeventviewer.cpp | 14 | ||||
-rw-r--r-- | korganizer/koeventviewerdialog.cpp | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index 1fcc977..cee0466 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp | |||
@@ -362,2 +362,5 @@ void KOEventViewer::appendTodo(Todo *event, int mode ) | |||
362 | } | 362 | } |
363 | if (event->hasStartDate()) { | ||
364 | mText.append(i18n("<p><b>Start on:</b> %1</p>").arg(event->dtStartStr(KOPrefs::instance()->mShortDateInViewer))); | ||
365 | } | ||
363 | if (event->hasDueDate()) { | 366 | if (event->hasDueDate()) { |
@@ -383,3 +386,14 @@ void KOEventViewer::appendTodo(Todo *event, int mode ) | |||
383 | formatAttendees(event); | 386 | formatAttendees(event); |
387 | if ( event->relatedTo() ) { | ||
388 | addTag("b",i18n("Parent todo: ")); | ||
389 | mText.append(event->relatedTo()->summary()+" [" +QString::number(event->relatedTo()->priority()) + "/" + QString::number(((Todo*)event->relatedTo())->percentComplete())+"%] <br>"); | ||
390 | } | ||
391 | QPtrList<Incidence> Relations = event->relations(); | ||
392 | Incidence *to; | ||
393 | if ( Relations.first() ) | ||
394 | addTag("b",i18n("Sub todos:<br>")); | ||
395 | for (to=Relations.first();to;to=Relations.next()) { | ||
396 | mText.append( to->summary()+" [" +QString::number(to->priority()) + "/" + QString::number(((Todo*)to)->percentComplete())+"%]<br>"); | ||
384 | 397 | ||
398 | } | ||
385 | setText(mText); | 399 | setText(mText); |
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp index 772fd95..3979ed2 100644 --- a/korganizer/koeventviewerdialog.cpp +++ b/korganizer/koeventviewerdialog.cpp | |||
@@ -123,2 +123,5 @@ void KOEventViewerDialog::setEvent(Event *event) | |||
123 | findButton( Close )->setFocus(); | 123 | findButton( Close )->setFocus(); |
124 | if ( !mSyncMode ) { | ||
125 | findButton( User1 )->setText( i18n("Agenda")); | ||
126 | } | ||
124 | } | 127 | } |