From b4ed5a3409d8a6d2f443e78306abbaf6963f0f9e Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 10 Oct 2005 01:15:22 +0000 Subject: dur --- (limited to 'korganizer/koeventviewer.cpp') diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index db695f5..976ee2c 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp @@ -326,6 +326,8 @@ void KOEventViewer::appendEvent(Event *event, int mode ) mText.append(i18n("

From: %1

To: %2

") .arg(event->dtStartDateStr(shortDate)) .arg(event->dtEndDateStr(shortDate))); + mText.append(i18n("

Duration: %1 days

") + .arg(event->dtStart().daysTo(event->dtEnd())+1)); } else { mText.append(i18n("

On: %1

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