author | zautrix <zautrix> | 2005-06-15 16:20:26 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-15 16:20:26 (UTC) |
commit | cba0ac17d3d505805be6aa4b4fea6f63473a1e00 (patch) (side-by-side diff) | |
tree | b7eceb0b3181cbb2c14b753692f135bc0cd5dd0e /libkcal/kincidenceformatter.cpp | |
parent | 2a788f41ebeb7d8edab7010fb1a00799cb9e036d (diff) | |
download | kdepimpi-cba0ac17d3d505805be6aa4b4fea6f63473a1e00.zip kdepimpi-cba0ac17d3d505805be6aa4b4fea6f63473a1e00.tar.gz kdepimpi-cba0ac17d3d505805be6aa4b4fea6f63473a1e00.tar.bz2 |
fixi
Diffstat (limited to 'libkcal/kincidenceformatter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkcal/kincidenceformatter.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libkcal/kincidenceformatter.cpp b/libkcal/kincidenceformatter.cpp index d1ace4f..9359fad 100644 --- a/libkcal/kincidenceformatter.cpp +++ b/libkcal/kincidenceformatter.cpp @@ -49,12 +49,13 @@ void KIncidenceFormatter::setEvent(Event *event) { int mode = 0; mCurrentIncidence = event; bool shortDate = true; if ( mode == 0 ) { addTag("h3",deTag(event->summary())); + formatReadOnly(event); } else { if ( mColorMode == 1 ) { mText +="<font color=\"#00A000\">"; } if ( mColorMode == 2 ) { @@ -63,12 +64,13 @@ void KIncidenceFormatter::setEvent(Event *event) // mText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; if ( mode == 1 ) { addTag("h2",i18n( "Local: " ) +deTag(event->summary())); } else { addTag("h2",i18n( "Remote: " ) +deTag(event->summary())); } + formatReadOnly(event); addTag("h3",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(event->lastModified(),shortDate, true ) ); if ( mColorMode ) mText += "</font>"; } if (event->cancelled ()) { mText +="<font color=\"#B00000\">"; @@ -140,13 +142,12 @@ void KIncidenceFormatter::setEvent(Event *event) addTag("p",i18n("<b>Access: </b>") +event->secrecyStr() ); // mText.append(event->secrecyStr()+"<br>"); formatCategories(event); - formatReadOnly(event); formatAttendees(event); if ( mCreated ) { #ifdef DESKTOP_VERSION addTag("p",i18n("<b>Created: ") +" </b>"+KGlobal::locale()->formatDateTime( event->created(), shortDate )); #else @@ -175,26 +176,29 @@ void KIncidenceFormatter::setEvent(Event *event) void KIncidenceFormatter::setTodo(Todo *event ) { int mode = 0; mCurrentIncidence = event; bool shortDate = true; - if (mode == 0 ) + if (mode == 0 ) { addTag("h3",deTag(event->summary())); + formatReadOnly(event); + } else { if ( mColorMode == 1 ) { mText +="<font color=\"#00A000\">"; } if ( mColorMode == 2 ) { mText +="<font color=\"#B00000\">"; } if ( mode == 1 ) { addTag("h2",i18n( "Local: " ) +deTag(event->summary())); } else { addTag("h2",i18n( "Remote: " ) +deTag(event->summary())); } + formatReadOnly(event); addTag("h3",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(event->lastModified(),shortDate, true ) ); if ( mColorMode ) mText += "</font>"; } if ( event->percentComplete() == 100 && event->hasCompletedDate() ) { mText +="<font color=\"#B00000\">"; @@ -244,13 +248,12 @@ void KIncidenceFormatter::setTodo(Todo *event ) //addTag("p",s); } addTag("p",i18n("<b>Access: </b>") +event->secrecyStr() ); formatCategories(event); - formatReadOnly(event); formatAttendees(event); if ( mCreated ) { #ifdef DESKTOP_VERSION addTag("p",i18n("<b>Created: ") +" </b>"+KGlobal::locale()->formatDateTime( event->created(), shortDate )); #else addTag("p",i18n("<b>Created: ") +" </b>"); |