author | zautrix <zautrix> | 2005-06-30 12:37:10 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-30 12:37:10 (UTC) |
commit | 4c19ba3345d1af263c02ebe564e56d9dec679347 (patch) (unidiff) | |
tree | 1ac48610c5545998670fa1c14592ef4e1981ce94 | |
parent | 13eb32c82e736b033435e596111b7b0f3fe75608 (diff) | |
download | kdepimpi-4c19ba3345d1af263c02ebe564e56d9dec679347.zip kdepimpi-4c19ba3345d1af263c02ebe564e56d9dec679347.tar.gz kdepimpi-4c19ba3345d1af263c02ebe564e56d9dec679347.tar.bz2 |
fixx
-rw-r--r-- | korganizer/journalentry.cpp | 13 | ||||
-rw-r--r-- | korganizer/journalentry.h | 1 | ||||
-rw-r--r-- | korganizer/kojournalview.cpp | 12 |
3 files changed, 17 insertions, 9 deletions
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp index 9e2c902..ca8d5f7 100644 --- a/korganizer/journalentry.cpp +++ b/korganizer/journalentry.cpp | |||
@@ -164,4 +164,4 @@ void JournalEntry::setDate(const QDate &date) | |||
164 | showOnlyMode = false; | 164 | showOnlyMode = false; |
165 | mDate = date; | ||
166 | writeJournal(); | 165 | writeJournal(); |
166 | mDate = date; | ||
167 | int id = mCalendar->defaultCalendar(); | 167 | int id = mCalendar->defaultCalendar(); |
@@ -181,4 +181,9 @@ void JournalEntry::toggleShowJournal() | |||
181 | emit showJournalOnly( mJournal ); | 181 | emit showJournalOnly( mJournal ); |
182 | //QTimer::singleShot( 0, this, SLOT( setVisibleOn() ) ); | ||
182 | } | 183 | } |
183 | } | 184 | } |
185 | void JournalEntry::setVisibleOn() | ||
186 | { | ||
187 | visibleMode = true; | ||
188 | } | ||
184 | void JournalEntry::setShowOnly() | 189 | void JournalEntry::setShowOnly() |
@@ -186,4 +191,6 @@ void JournalEntry::setShowOnly() | |||
186 | showOnlyMode = true; | 191 | showOnlyMode = true; |
187 | mEditor->setFocus(); | 192 | if ( mTitle->text().isEmpty() ) |
188 | visibleMode = true; | 193 | mTitle->setFocus(); |
194 | else | ||
195 | mEditor->setFocus(); | ||
189 | } | 196 | } |
diff --git a/korganizer/journalentry.h b/korganizer/journalentry.h index e98d018..cc9b5ef 100644 --- a/korganizer/journalentry.h +++ b/korganizer/journalentry.h | |||
@@ -59,2 +59,3 @@ class JournalEntry : public QFrame { | |||
59 | void toggleShowJournal(); | 59 | void toggleShowJournal(); |
60 | void setVisibleOn(); | ||
60 | signals: | 61 | signals: |
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp index 7a96aa5..6fa9b23 100644 --- a/korganizer/kojournalview.cpp +++ b/korganizer/kojournalview.cpp | |||
@@ -157,3 +157,3 @@ void KOJournalView::showOnly ( Journal* j ) | |||
157 | { | 157 | { |
158 | //qDebug("showOnly %x ", j); | 158 | qDebug("showOnly %x ", j); |
159 | flushView(); | 159 | flushView(); |
@@ -171,3 +171,3 @@ void KOJournalView::showList(QPtrList<Journal> jl) | |||
171 | { | 171 | { |
172 | //qDebug("KOJournalView::showList %d",jl.count() ); | 172 | qDebug("KOJournalView::showList %d",jl.count() ); |
173 | JournalEntry* mEntry = jEntries.first(); | 173 | JournalEntry* mEntry = jEntries.first(); |
@@ -179,6 +179,6 @@ void KOJournalView::showList(QPtrList<Journal> jl) | |||
179 | mEntry = getNewEntry(); | 179 | mEntry = getNewEntry(); |
180 | mEntry->show(); | ||
181 | mEntry->setVisibleMode( true ); | ||
182 | mEntry->setDate(mDate); | 180 | mEntry->setDate(mDate); |
183 | mEntry->setJournal(jl.at(iii)); | 181 | mEntry->setJournal(jl.at(iii)); |
182 | mEntry->setVisibleMode( true ); | ||
183 | mEntry->show(); | ||
184 | mEntry = 0; | 184 | mEntry = 0; |
@@ -187,4 +187,4 @@ void KOJournalView::showList(QPtrList<Journal> jl) | |||
187 | mEntry->setJournal(jl.at(iii)); | 187 | mEntry->setJournal(jl.at(iii)); |
188 | mEntry->show(); | ||
189 | mEntry->setVisibleMode( true ); | 188 | mEntry->setVisibleMode( true ); |
189 | mEntry->show(); | ||
190 | mEntry = jEntries.next(); | 190 | mEntry = jEntries.next(); |
@@ -211,3 +211,3 @@ void KOJournalView::showDates(const QDate &start, const QDate &) | |||
211 | mDate = start; | 211 | mDate = start; |
212 | mDateLabel-> setText(KGlobal::locale()->formatDate(mDate)); | 212 | mDateLabel->setText(KGlobal::locale()->formatDate(mDate)); |
213 | QPtrList<Journal> jl = calendar()->journals4Date( start ); | 213 | QPtrList<Journal> jl = calendar()->journals4Date( start ); |