From 7bd83e913399b8be68a7d37e8f02118ec9eab90e Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 13 Feb 2005 19:07:45 +0000 Subject: todo fixi --- (limited to 'libkcal/kincidenceformatter.cpp') diff --git a/libkcal/kincidenceformatter.cpp b/libkcal/kincidenceformatter.cpp index 0d9c3f4..cc3088a 100644 --- a/libkcal/kincidenceformatter.cpp +++ b/libkcal/kincidenceformatter.cpp @@ -192,6 +192,18 @@ void KIncidenceFormatter::setTodo(Todo *event ) addTag("b",i18n("Location: ")); mText.append(event->location()+"
"); } + + if (event->recurrence()->doesRecur()) { + + QString recurText = event->recurrence()->recurrenceText(); + addTag("p","" + i18n("This is a %1 recurring todo.").arg(recurText ) + ""); + } + + if (event->hasStartDate()) { + mText.append(i18n("

Start on: %1

").arg(event->dtStartStr(shortDate))); + } + + if (event->hasDueDate()) { mText.append(i18n("

Due on: %1

").arg(event->dtDueStr(shortDate))); } -- cgit v0.9.0.2