author | zautrix <zautrix> | 2005-07-07 00:03:44 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-07 00:03:44 (UTC) |
commit | cb350dbe9151db2ded62942d29d11d6c8b88eabd (patch) (side-by-side diff) | |
tree | 3ba8d483461e10afddb67f17cd038118d99513ef /korganizer/calendarview.cpp | |
parent | 93bc4dbbef774e28672c947281291b12d5971803 (diff) | |
download | kdepimpi-cb350dbe9151db2ded62942d29d11d6c8b88eabd.zip kdepimpi-cb350dbe9151db2ded62942d29d11d6c8b88eabd.tar.gz kdepimpi-cb350dbe9151db2ded62942d29d11d6c8b88eabd.tar.bz2 |
fixessss
-rw-r--r-- | korganizer/calendarview.cpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 98e0ac1..bc1c0c7 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -2821,3 +2821,3 @@ void CalendarView::slotSelectPickerDate( QDate d) todoChanged( to ); - } else { + } else if ( mMoveIncidence->typeID() == eventID ) { if ( mMoveIncidence->doesRecur() ) { @@ -2841,4 +2841,8 @@ void CalendarView::slotSelectPickerDate( QDate d) changeEventDisplay((Event*)mMoveIncidence, KOGlobals::EVENTEDITED); + } else if ( mMoveIncidence->typeID() == journalID ) { + QTime tim = mMoveIncidence->dtStart().time(); + QDateTime dt ( d,tim ); + mMoveIncidence->setDtStart( dt ); + updateView(); } - mMoveIncidence->setRevision( mMoveIncidence->revision()+1 ); @@ -3187,3 +3191,3 @@ void CalendarView::cloneIncidence(Incidence * orgInc ) } - else { + else if ( newInc->typeID() == eventID ) { Event* e = (Event*) newInc; @@ -3197,2 +3201,5 @@ void CalendarView::cloneIncidence(Incidence * orgInc ) } + } if ( newInc->typeID() == journalID ) { + mCalendar->addJournal( (Journal*) newInc ); + editJournal( (Journal*) newInc ); } @@ -3500,3 +3507,3 @@ void CalendarView::deleteTodo(Todo *todo) } - switch (msgItemDelete(text)) { + switch (msgItemDelete(i18n("Todo:") +"\n"+text)) { case KMessageBox::Continue: // OK @@ -3531,3 +3538,13 @@ void CalendarView::deleteJournal(Journal *jour) if (KOPrefs::instance()->mConfirm) { - switch (msgItemDelete( jour->description().left(20))) { + + QString des; + if ( !jour->summary().isEmpty() ) { + des = jour->summary(); + } else { + des = jour->description().left(30); + des = des.simplifyWhiteSpace (); + des.replace (QRegExp ("\\n"),"" ); + des.replace (QRegExp ("\\r"),"" ); + } + switch (msgItemDelete( i18n("Journal:") +"\n"+des.left(20))) { case KMessageBox::Continue: // OK |