summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-29 12:52:24 (UTC)
committer zautrix <zautrix>2005-06-29 12:52:24 (UTC)
commit4c19dcc4e5b45d9cf04c91af82f00b764b01e985 (patch) (side-by-side diff)
treeb9b6b679c499207c06f74db090ead71bc175866d
parent0d4d5898a32f162dca010db329e02310a14629d5 (diff)
downloadkdepimpi-4c19dcc4e5b45d9cf04c91af82f00b764b01e985.zip
kdepimpi-4c19dcc4e5b45d9cf04c91af82f00b764b01e985.tar.gz
kdepimpi-4c19dcc4e5b45d9cf04c91af82f00b764b01e985.tar.bz2
fixesss
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/journalentry.cpp5
-rw-r--r--korganizer/koeventviewer.cpp10
2 files changed, 13 insertions, 2 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp
index 05bfd31..232ea58 100644
--- a/korganizer/journalentry.cpp
+++ b/korganizer/journalentry.cpp
@@ -194,4 +194,9 @@ void JournalEntry::setJournal(Journal *journal)
mJournal = journal;
+ if ( journal->isReadOnly() )
+ mTitle->setText(mJournal->summary()+" ("+i18n("readonly")+")");
+ else
mTitle->setText(mJournal->summary());
mEditor->setText(mJournal->description());
+ mTitle->setReadOnly (journal->isReadOnly() );
+ mEditor->setReadOnly ( journal->isReadOnly() );
int id = mJournal->calID();
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp
index dcbb99f..8c1e5b2 100644
--- a/korganizer/koeventviewer.cpp
+++ b/korganizer/koeventviewer.cpp
@@ -702,6 +702,8 @@ void KOEventViewer::appendJournal(Journal *jour, int mode )
mText.append(i18n("<h3> %1 </h3> ").arg(jour->dtStartDateStr(KOPrefs::instance()->mShortDateInViewer)));
- addTag("b",i18n( "Last modified: " ) + KGlobal::locale()->formatDateTime(jour->lastModified(),shortDate ) );
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()) {
@@ -714,2 +716,6 @@ void KOEventViewer::formatReadOnly(Incidence *event)
{
+ int id = event->calID();
+ if ( id > 1 ) {
+ addTag("p", i18n("Calendar:")+" " + KOPrefs::instance()->getCalendar( id )->mName );
+ }
if (event->isReadOnly()) {