author | zautrix <zautrix> | 2005-10-10 01:15:44 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-10-10 01:15:44 (UTC) |
commit | a36b62685510933d1fd57d2c53d50b7f2fe2fc1c (patch) (side-by-side diff) | |
tree | e97e078210104bdc70b9ed9d63f66e083cd0b032 /libkcal | |
parent | b4ed5a3409d8a6d2f443e78306abbaf6963f0f9e (diff) | |
download | kdepimpi-a36b62685510933d1fd57d2c53d50b7f2fe2fc1c.zip kdepimpi-a36b62685510933d1fd57d2c53d50b7f2fe2fc1c.tar.gz kdepimpi-a36b62685510933d1fd57d2c53d50b7f2fe2fc1c.tar.bz2 |
kkk
-rw-r--r-- | libkcal/kincidenceformatter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libkcal/kincidenceformatter.cpp b/libkcal/kincidenceformatter.cpp index f8f40f1..4dfe16a 100644 --- a/libkcal/kincidenceformatter.cpp +++ b/libkcal/kincidenceformatter.cpp @@ -79,13 +79,15 @@ void KIncidenceFormatter::setEvent(Event *event) mText += "</font>"; } if (event->doesFloat()) { if (event->isMultiDay()) { mText.append(i18n("<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>") .arg(event->dtStartDateStr(shortDate)) - .arg(event->dtEndDateStr(shortDate))); + .arg(event->dtEndDateStr(shortDate))); + mText.append(i18n("<p><b>Duration:</b> %1 days</p>") + .arg(event->dtStart().daysTo(event->dtEnd())+1)); } else { mText.append(i18n("<p><b>On:</b> %1</p>").arg(event->dtStartDateStr( shortDate ))); } } else { if (event->isMultiDay()) { mText.append(i18n("<p><b>From:</b> %1</p> ") |