From 4c19dcc4e5b45d9cf04c91af82f00b764b01e985 Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 29 Jun 2005 12:52:24 +0000 Subject: fixesss --- (limited to 'korganizer/koeventviewer.cpp') diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index dcbb99f..8c1e5b2 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp @@ -699,11 +699,13 @@ void KOEventViewer::appendJournal(Journal *jour, int mode ) } } topLevelWidget()->setCaption("Journal Viewer"); - mText.append(i18n("

%1

").arg(jour->dtStartDateStr(KOPrefs::instance()->mShortDateInViewer))); - addTag("b",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(jour->lastModified(),shortDate ) ); + mText.append(i18n("

%1

").arg(jour->dtStartDateStr(KOPrefs::instance()->mShortDateInViewer))); if (!jour->summary().isEmpty()) { - addTag("p",i18n(" Title: ") + deTag(jour->summary())); + addTag("b",i18n(" Title: ") + deTag(jour->summary())); } + formatReadOnly(jour); + addTag("b",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(jour->lastModified(),shortDate ) ); + if (!jour->description().isEmpty()) { addTag("p",deTag(jour->description())); } @@ -712,6 +714,10 @@ void KOEventViewer::appendJournal(Journal *jour, int mode ) void KOEventViewer::formatReadOnly(Incidence *event) { + int id = event->calID(); + if ( id > 1 ) { + addTag("p", i18n("Calendar:")+" " + KOPrefs::instance()->getCalendar( id )->mName ); + } if (event->isReadOnly()) { addTag("p","(" + i18n("read-only") + ")"); } -- cgit v0.9.0.2