summaryrefslogtreecommitdiffabout
path: root/korganizer/journalentry.cpp
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 /korganizer/journalentry.cpp
parent0d4d5898a32f162dca010db329e02310a14629d5 (diff)
downloadkdepimpi-4c19dcc4e5b45d9cf04c91af82f00b764b01e985.zip
kdepimpi-4c19dcc4e5b45d9cf04c91af82f00b764b01e985.tar.gz
kdepimpi-4c19dcc4e5b45d9cf04c91af82f00b764b01e985.tar.bz2
fixesss
Diffstat (limited to 'korganizer/journalentry.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/journalentry.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp
index 05bfd31..232ea58 100644
--- a/korganizer/journalentry.cpp
+++ b/korganizer/journalentry.cpp
@@ -183,26 +183,31 @@ void JournalEntry::toggleShowJournal()
emit showJournalOnly( mJournal );
}
void JournalEntry::setShowOnly()
{
showOnlyMode = true;
mEditor->setFocus();
}
void JournalEntry::setJournal(Journal *journal)
{
writeJournal();
mJournal = journal;
- mTitle->setText(mJournal->summary());
+ 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();
QString calname = KOPrefs::instance()->getCalendar( id )->mName;
mTitleLabel->setText( " (" + calname +")");
mDirty = false;
}
Journal *JournalEntry::journal() const
{
return mJournal;
}