summaryrefslogtreecommitdiffabout
path: root/korganizer/journalentry.cpp
Unidiff
Diffstat (limited to 'korganizer/journalentry.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/journalentry.cpp5
1 files changed, 5 insertions, 0 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()
183 emit showJournalOnly( mJournal ); 183 emit showJournalOnly( mJournal );
184} 184}
185void JournalEntry::setShowOnly() 185void JournalEntry::setShowOnly()
186{ 186{
187 showOnlyMode = true; 187 showOnlyMode = true;
188 mEditor->setFocus(); 188 mEditor->setFocus();
189} 189}
190void JournalEntry::setJournal(Journal *journal) 190void JournalEntry::setJournal(Journal *journal)
191{ 191{
192 writeJournal(); 192 writeJournal();
193 193
194 mJournal = journal; 194 mJournal = journal;
195 if ( journal->isReadOnly() )
196 mTitle->setText(mJournal->summary()+" ("+i18n("readonly")+")");
197 else
195 mTitle->setText(mJournal->summary()); 198 mTitle->setText(mJournal->summary());
196 mEditor->setText(mJournal->description()); 199 mEditor->setText(mJournal->description());
200 mTitle->setReadOnly (journal->isReadOnly() );
201 mEditor->setReadOnly ( journal->isReadOnly() );
197 int id = mJournal->calID(); 202 int id = mJournal->calID();
198 203
199 QString calname = KOPrefs::instance()->getCalendar( id )->mName; 204 QString calname = KOPrefs::instance()->getCalendar( id )->mName;
200 mTitleLabel->setText( " (" + calname +")"); 205 mTitleLabel->setText( " (" + calname +")");
201 206
202 mDirty = false; 207 mDirty = false;
203} 208}
204 209
205Journal *JournalEntry::journal() const 210Journal *JournalEntry::journal() const
206{ 211{
207 return mJournal; 212 return mJournal;
208} 213}