From b1e885da3b0a083121f940485d9c0eea53ff5139 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 17 Feb 2005 21:45:30 +0000 Subject: fix --- diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 62c8447..06aa5f6 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt @@ -8,6 +8,9 @@ Added icon for the stealth new week view and made navigation more user friendly Added a "go today" button to the datepicker. +Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) +and made it configureable to show these values. + ********** VERSION 2.0.7 ************ diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index d87938a..417d89c 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp @@ -456,7 +456,17 @@ void KOEventViewer::appendTodo(Todo *event, int mode ) for (to=Relations.first();to;to=Relations.next()) { mText.append( to->summary()+" [" +QString::number(to->priority()) + "/" + QString::number(((Todo*)to)->percentComplete())+"%]
"); - } + } + if ( KOPrefs::instance()->mEVshowCreated ) { + addTag("p",i18n("Created: ") +" "); + addTag("p", KGlobal::locale()->formatDateTime( event->created(), shortDate )); + + } + if ( KOPrefs::instance()->mEVshowChanged ) { + addTag("p",i18n("Last modified: ") +" "); + addTag("p", KGlobal::locale()->formatDateTime( event->lastModified(), shortDate )); + + } setText(mText); } -- cgit v0.9.0.2