From 949c6e28c83668176fd9c29e12668322c6ae627f Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 30 Jan 2005 01:41:12 +0000 Subject: bugs --- (limited to 'libkcal/kincidenceformatter.cpp') diff --git a/libkcal/kincidenceformatter.cpp b/libkcal/kincidenceformatter.cpp index 2c45f21..c52f2b3 100644 --- a/libkcal/kincidenceformatter.cpp +++ b/libkcal/kincidenceformatter.cpp @@ -183,9 +183,15 @@ void KIncidenceFormatter::setTodo(Todo *event ) } mText.append(i18n("

Priority: %2

") .arg(QString::number(event->priority()))); - + + if ( event->percentComplete() == 100 && event->hasCompletedDate() ) { + mText.append(i18n("

Completed on %1

") + .arg( event->completedStr() )); + } else { mText.append(i18n("

%1 % completed

") .arg(event->percentComplete())); + } + addTag("p",i18n("Access: ") +event->secrecyStr() ); formatCategories(event); if (!event->description().isEmpty()) { @@ -246,6 +252,7 @@ void KIncidenceFormatter::formatAttendees(Incidence *event) QPtrList attendees = event->attendees(); if (attendees.count()) { QString iconPath = KGlobal::iconLoader()->iconPath("mailappt",KIcon::Small); + QString NOiconPath = KGlobal::iconLoader()->iconPath("nomailappt",KIcon::Small); addTag("h3",i18n("Organizer")); mText.append("