author | zautrix <zautrix> | 2005-07-26 13:38:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-26 13:38:06 (UTC) |
commit | b37d71f782540851846613a70a60daf86816f7ec (patch) (unidiff) | |
tree | cd69f9e9a57903a2d463f9f30d376631b705f279 /korganizer | |
parent | 346437d384dd780a1f7b75dd9caa3770525edfda (diff) | |
download | kdepimpi-b37d71f782540851846613a70a60daf86816f7ec.zip kdepimpi-b37d71f782540851846613a70a60daf86816f7ec.tar.gz kdepimpi-b37d71f782540851846613a70a60daf86816f7ec.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/koprefs.cpp | 1 | ||||
-rw-r--r-- | korganizer/koprefs.h | 1 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 6 | ||||
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 16 |
4 files changed, 22 insertions, 2 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 6560877..eb997f5 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -96,48 +96,49 @@ KOPrefs::KOPrefs() : | |||
96 | #endif | 96 | #endif |
97 | addItemBool("ShowIconNavigator",&mShowIconNavigator,addIcons); | 97 | addItemBool("ShowIconNavigator",&mShowIconNavigator,addIcons); |
98 | addItemBool("ShowIconAllday",&mShowIconAllday,addIcons); | 98 | addItemBool("ShowIconAllday",&mShowIconAllday,addIcons); |
99 | addItemBool("ShowIconFilterview",&mShowIconFilterview,addIcons); | 99 | addItemBool("ShowIconFilterview",&mShowIconFilterview,addIcons); |
100 | addItemBool("ShowIconToggleFull",&mShowIconToggleFull,addIcons); | 100 | addItemBool("ShowIconToggleFull",&mShowIconToggleFull,addIcons); |
101 | 101 | ||
102 | addItemInt("LastLoadedLanguage",&mOldLanguage,0); | 102 | addItemInt("LastLoadedLanguage",&mOldLanguage,0); |
103 | 103 | ||
104 | addItemBool("AskForQuit",&mAskForQuit,false); | 104 | addItemBool("AskForQuit",&mAskForQuit,false); |
105 | 105 | ||
106 | #ifndef DESKTOP_VERSION | 106 | #ifndef DESKTOP_VERSION |
107 | addItemBool("ShowFullMenu",&mShowFullMenu,false); | 107 | addItemBool("ShowFullMenu",&mShowFullMenu,false); |
108 | #else | 108 | #else |
109 | addItemBool("ShowFullMenu",&mShowFullMenu,true); | 109 | addItemBool("ShowFullMenu",&mShowFullMenu,true); |
110 | #endif | 110 | #endif |
111 | addItemBool("ToolBarHor",&mToolBarHor, true ); | 111 | addItemBool("ToolBarHor",&mToolBarHor, true ); |
112 | addItemBool("ToolBarUp",&mToolBarUp, false ); | 112 | addItemBool("ToolBarUp",&mToolBarUp, false ); |
113 | addItemBool("ToolBarHorV",&mToolBarHorV, true ); | 113 | addItemBool("ToolBarHorV",&mToolBarHorV, true ); |
114 | addItemBool("ToolBarUpV",&mToolBarUpV, false ); | 114 | addItemBool("ToolBarUpV",&mToolBarUpV, false ); |
115 | addItemBool("ToolBarHorN",&mToolBarHorN, true ); | 115 | addItemBool("ToolBarHorN",&mToolBarHorN, true ); |
116 | addItemBool("ToolBarUpN",&mToolBarUpN, false ); | 116 | addItemBool("ToolBarUpN",&mToolBarUpN, false ); |
117 | addItemBool("ToolBarHorF",&mToolBarHorF, true ); | 117 | addItemBool("ToolBarHorF",&mToolBarHorF, true ); |
118 | addItemBool("ToolBarUpF",&mToolBarUpF, false ); | 118 | addItemBool("ToolBarUpF",&mToolBarUpF, false ); |
119 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); | 119 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); |
120 | addItemBool("WhatsNextTime2Lines",&mWhatsNextTime2Lines, false ); | ||
120 | addItemInt("Whats Next Days",&mWhatsNextDays,3); | 121 | addItemInt("Whats Next Days",&mWhatsNextDays,3); |
121 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); | 122 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); |
122 | 123 | ||
123 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); | 124 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); |
124 | addItemBool("ShowCompletedTodoInAgenda",&mShowCompletedTodoInAgenda,true); | 125 | addItemBool("ShowCompletedTodoInAgenda",&mShowCompletedTodoInAgenda,true); |
125 | addItemBool("ShowTimeInAgenda",&mShowTimeInAgenda,true); | 126 | addItemBool("ShowTimeInAgenda",&mShowTimeInAgenda,true); |
126 | addItemBool("HideNonStartedTodos",&mHideNonStartedTodos,false); | 127 | addItemBool("HideNonStartedTodos",&mHideNonStartedTodos,false); |
127 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); | 128 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); |
128 | addItemInt("AllDay Size",&mAllDaySize,28); | 129 | addItemInt("AllDay Size",&mAllDaySize,28); |
129 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; | 130 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; |
130 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); | 131 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); |
131 | 132 | ||
132 | addItemStringList("LocationDefaults",&mLocationDefaults ); | 133 | addItemStringList("LocationDefaults",&mLocationDefaults ); |
133 | addItemStringList("EventSummary User",&mEventSummaryUser); | 134 | addItemStringList("EventSummary User",&mEventSummaryUser); |
134 | addItemStringList("TodoSummary User",&mTodoSummaryUser); | 135 | addItemStringList("TodoSummary User",&mTodoSummaryUser); |
135 | addItemStringList("JournalSummary User",&mJournalSummaryUser); | 136 | addItemStringList("JournalSummary User",&mJournalSummaryUser); |
136 | 137 | ||
137 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); | 138 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); |
138 | addItemBool("Enable Project View",&mEnableProjectView,false); | 139 | addItemBool("Enable Project View",&mEnableProjectView,false); |
139 | addItemBool("Auto Save",&mAutoSave,false); | 140 | addItemBool("Auto Save",&mAutoSave,false); |
140 | addItemInt("Auto Save Interval",&mAutoSaveInterval,3); | 141 | addItemInt("Auto Save Interval",&mAutoSaveInterval,3); |
141 | addItemBool("Confirm Deletes",&mConfirm,true); | 142 | addItemBool("Confirm Deletes",&mConfirm,true); |
142 | addItemString("Archive File",&mArchiveFile); | 143 | addItemString("Archive File",&mArchiveFile); |
143 | addItemString("Html Export File",&mHtmlExportFile, | 144 | addItemString("Html Export File",&mHtmlExportFile, |
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index 2ff03fa..9749ba3 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -187,48 +187,49 @@ class KOPrefs : public KPimPrefs | |||
187 | QColor mAppColor1; | 187 | QColor mAppColor1; |
188 | QColor mAppColor2; | 188 | QColor mAppColor2; |
189 | bool mUseAppColors; | 189 | bool mUseAppColors; |
190 | 190 | ||
191 | int mDayBegins; | 191 | int mDayBegins; |
192 | int mHourSize; | 192 | int mHourSize; |
193 | int mAllDaySize; | 193 | int mAllDaySize; |
194 | bool mShowFullMenu; | 194 | bool mShowFullMenu; |
195 | bool mDailyRecur; | 195 | bool mDailyRecur; |
196 | bool mWeeklyRecur; | 196 | bool mWeeklyRecur; |
197 | bool mMonthDailyRecur; | 197 | bool mMonthDailyRecur; |
198 | bool mMonthWeeklyRecur; | 198 | bool mMonthWeeklyRecur; |
199 | bool mMonthShowIcons; | 199 | bool mMonthShowIcons; |
200 | bool mMonthShowTimes; | 200 | bool mMonthShowTimes; |
201 | bool mMonthShowShort; | 201 | bool mMonthShowShort; |
202 | bool mEnableToolTips; | 202 | bool mEnableToolTips; |
203 | bool mEnableMonthScroll; | 203 | bool mEnableMonthScroll; |
204 | bool mFullViewMonth; | 204 | bool mFullViewMonth; |
205 | bool mMonthViewUsesCategoryColor; | 205 | bool mMonthViewUsesCategoryColor; |
206 | bool mFullViewTodo; | 206 | bool mFullViewTodo; |
207 | bool mShowCompletedTodo; | 207 | bool mShowCompletedTodo; |
208 | bool mMarcusBainsEnabled; | 208 | bool mMarcusBainsEnabled; |
209 | int mNextXDays; | 209 | int mNextXDays; |
210 | int mWhatsNextDays; | 210 | int mWhatsNextDays; |
211 | bool mWhatsNextTime2Lines; | ||
211 | int mWhatsNextPrios; | 212 | int mWhatsNextPrios; |
212 | bool mEnableQuickTodo; | 213 | bool mEnableQuickTodo; |
213 | 214 | ||
214 | bool mCompactDialogs; | 215 | bool mCompactDialogs; |
215 | bool mVerticalScreen; | 216 | bool mVerticalScreen; |
216 | 217 | ||
217 | bool mShowIconNewTodo; | 218 | bool mShowIconNewTodo; |
218 | bool mShowIconNewEvent; | 219 | bool mShowIconNewEvent; |
219 | bool mShowIconSearch; | 220 | bool mShowIconSearch; |
220 | bool mShowIconList; | 221 | bool mShowIconList; |
221 | bool mShowIconDay1; | 222 | bool mShowIconDay1; |
222 | bool mShowIconDay5; | 223 | bool mShowIconDay5; |
223 | bool mShowIconDay6; | 224 | bool mShowIconDay6; |
224 | bool mShowIconDay7; | 225 | bool mShowIconDay7; |
225 | bool mShowIconMonth; | 226 | bool mShowIconMonth; |
226 | bool mShowIconTodoview; | 227 | bool mShowIconTodoview; |
227 | bool mShowIconBackFast; | 228 | bool mShowIconBackFast; |
228 | bool mShowIconBack; | 229 | bool mShowIconBack; |
229 | bool mShowIconToday; | 230 | bool mShowIconToday; |
230 | bool mShowIconForward; | 231 | bool mShowIconForward; |
231 | bool mShowIconForwardFast; | 232 | bool mShowIconForwardFast; |
232 | bool mShowIconWhatsThis; | 233 | bool mShowIconWhatsThis; |
233 | bool mShowIconWeekNum; | 234 | bool mShowIconWeekNum; |
234 | bool mShowIconNextDays; | 235 | bool mShowIconNextDays; |
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 05bd73f..9e2378a 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -758,51 +758,55 @@ void KOPrefsDialog::setupViewsTab() | |||
758 | // *********************** What'sNext View | 758 | // *********************** What'sNext View |
759 | topFrame = addPage(i18n("What's Next View"),0,0); | 759 | topFrame = addPage(i18n("What's Next View"),0,0); |
760 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 760 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
761 | 761 | ||
762 | topLayout = new QGridLayout(topFrame,4,1); | 762 | topLayout = new QGridLayout(topFrame,4,1); |
763 | topLayout->setSpacing(mSpacingHint); | 763 | topLayout->setSpacing(mSpacingHint); |
764 | topLayout->setMargin(mMarginHint); | 764 | topLayout->setMargin(mMarginHint); |
765 | ii = 0; | 765 | ii = 0; |
766 | 766 | ||
767 | 767 | ||
768 | QHBox* hdummy = new QHBox(topFrame); | 768 | QHBox* hdummy = new QHBox(topFrame); |
769 | new QLabel(i18n("Days in What's Next:"),hdummy); | 769 | new QLabel(i18n("Days in What's Next:"),hdummy); |
770 | mWhatsNextSpin = new QSpinBox(1,14,1,hdummy); | 770 | mWhatsNextSpin = new QSpinBox(1,14,1,hdummy); |
771 | 771 | ||
772 | topLayout->addWidget(hdummy,ii++,0); | 772 | topLayout->addWidget(hdummy,ii++,0); |
773 | 773 | ||
774 | QHBox *prioBox = new QHBox(topFrame); | 774 | QHBox *prioBox = new QHBox(topFrame); |
775 | // intervalBox->setSpacing(mSpacingHint); | 775 | // intervalBox->setSpacing(mSpacingHint); |
776 | topLayout->addWidget(prioBox,ii++,0); | 776 | topLayout->addWidget(prioBox,ii++,0); |
777 | 777 | ||
778 | QLabel *prioLabel = new QLabel(i18n("Number of max.displayed todo prios:"), prioBox); | 778 | QLabel *prioLabel = new QLabel(i18n("Number of max.displayed todo prios:"), prioBox); |
779 | mPrioSpin = new QSpinBox(0,5,1,prioBox); | 779 | mPrioSpin = new QSpinBox(0,5,1,prioBox); |
780 | if ( QApplication::desktop()->width() < 300 ) | 780 | if ( QApplication::desktop()->width() < 300 ) |
781 | mPrioSpin->setFixedWidth( 40 ); | 781 | mPrioSpin->setFixedWidth( 40 ); |
782 | |||
783 | KPrefsDialogWidBool *passwdk = | 782 | KPrefsDialogWidBool *passwdk = |
784 | 783 | ||
784 | addWidBool(i18n("Show times on two lines"), | ||
785 | &(KOPrefs::instance()->mWhatsNextTime2Lines),topFrame); | ||
786 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
787 | passwdk = | ||
788 | |||
785 | addWidBool(i18n("Show events that are done"), | 789 | addWidBool(i18n("Show events that are done"), |
786 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); | 790 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); |
787 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 791 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
788 | passwdk = | 792 | passwdk = |
789 | addWidBool(i18n("Show parent To-Do's"), | 793 | addWidBool(i18n("Show parent To-Do's"), |
790 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); | 794 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); |
791 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 795 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
792 | 796 | ||
793 | passwdk = | 797 | passwdk = |
794 | addWidBool(i18n("Show location"), | 798 | addWidBool(i18n("Show location"), |
795 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); | 799 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); |
796 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 800 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
797 | 801 | ||
798 | 802 | ||
799 | passwdk = | 803 | passwdk = |
800 | addWidBool(i18n("Use short date in WN+Event view"), | 804 | addWidBool(i18n("Use short date in WN+Event view"), |
801 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); | 805 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); |
802 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 806 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
803 | 807 | ||
804 | 808 | ||
805 | 809 | ||
806 | 810 | ||
807 | // *********************** Todo View | 811 | // *********************** Todo View |
808 | 812 | ||
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 221debc..fafcb58 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp | |||
@@ -508,83 +508,97 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a | |||
508 | Event *event = static_cast<Event *>(ev); | 508 | Event *event = static_cast<Event *>(ev); |
509 | QDateTime st,end; | 509 | QDateTime st,end; |
510 | if ( event->recurrence()->doesRecur() ) { | 510 | if ( event->recurrence()->doesRecur() ) { |
511 | QDate recDate= mEventDate; | 511 | QDate recDate= mEventDate; |
512 | int days = event->dtStart().date().daysTo (event->dtEnd().date() ); | 512 | int days = event->dtStart().date().daysTo (event->dtEnd().date() ); |
513 | while ( ! event->recursOn( recDate ) ) { | 513 | while ( ! event->recursOn( recDate ) ) { |
514 | recDate = recDate.addDays( -1 ); | 514 | recDate = recDate.addDays( -1 ); |
515 | 515 | ||
516 | } | 516 | } |
517 | st = QDateTime ( recDate, event->dtStart().time() ); | 517 | st = QDateTime ( recDate, event->dtStart().time() ); |
518 | end = QDateTime ( recDate.addDays( days ), event->dtEnd().time() ); | 518 | end = QDateTime ( recDate.addDays( days ), event->dtEnd().time() ); |
519 | } | 519 | } |
520 | else { | 520 | else { |
521 | st = event->dtStart(); | 521 | st = event->dtStart(); |
522 | end = event->dtEnd(); | 522 | end = event->dtEnd(); |
523 | } | 523 | } |
524 | 524 | ||
525 | 525 | ||
526 | QString dateText; | 526 | QString dateText; |
527 | // qDebug("%s %s %s %s ", mEventDate.toString().latin1(),event->summary().latin1(), st .toString().latin1(),end.toString().latin1() ); | 527 | // qDebug("%s %s %s %s ", mEventDate.toString().latin1(),event->summary().latin1(), st .toString().latin1(),end.toString().latin1() ); |
528 | if ( st.date() < mEventDate ) | 528 | if ( st.date() < mEventDate ) |
529 | dateText = "++:++-"; | 529 | dateText = "++:++-"; |
530 | else | 530 | else |
531 | dateText = event->dtStartTimeStr() + "-"; | 531 | dateText = event->dtStartTimeStr() + "-"; |
532 | if ( KOPrefs::instance()->mWhatsNextTime2Lines ) | ||
533 | dateText += " "; | ||
532 | if ( end.date() > mEventDate ) | 534 | if ( end.date() > mEventDate ) |
533 | dateText += "++:++"; | 535 | dateText += "++:++"; |
534 | else | 536 | else |
535 | dateText += event->dtEndTimeStr(); | 537 | dateText += event->dtEndTimeStr(); |
536 | if ( notRed ) | 538 | if ( notRed ) |
537 | tempText += dateText; | 539 | tempText += dateText; |
538 | else { | 540 | else { |
539 | if ( end < cdt ) { | 541 | if ( end < cdt ) { |
540 | if ( !KOPrefs::instance()->mWNViewShowsPast ) | 542 | if ( !KOPrefs::instance()->mWNViewShowsPast ) |
541 | return false; | 543 | return false; |
542 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; | 544 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; |
543 | } | 545 | } |
544 | else if ( st < cdt ) | 546 | else if ( st < cdt ) |
545 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; | 547 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; |
546 | else | 548 | else |
547 | tempText += dateText; | 549 | tempText += dateText; |
548 | 550 | ||
549 | } | 551 | } |
550 | 552 | ||
551 | } else { | 553 | } else { |
552 | if ( bDay ) { | 554 | if ( bDay ) { |
553 | 555 | ||
554 | if ( ev->isBirthday()) | 556 | if ( ev->isBirthday()) |
555 | tempText += "<font color=\"#00B000\">" + i18n("Birthday") +":</font>"; | 557 | tempText += "<font color=\"#00B000\">" + i18n("Birthday") +":</font>"; |
556 | else | 558 | else |
557 | tempText += "<font color=\"#00B0000\">" + i18n("Anniversary")+":</font>"; | 559 | tempText += "<font color=\"#00B0000\">" + i18n("Anniversary")+":</font>"; |
558 | } else { | 560 | } else { |
559 | tempText += i18n("Allday:"); | 561 | if ( ((Event*)ev)->isMultiDay() ) { |
562 | QString dfs = KGlobal::locale()->dateFormatShort(); | ||
563 | KGlobal::locale()->setDateFormatShort("%d.%b"); | ||
564 | tempText +=KGlobal::locale()->formatDate(((Event*)ev)->dtStart().date(), true, KLocale::Userdefined) + "-"; | ||
565 | if ( KOPrefs::instance()->mWhatsNextTime2Lines ) | ||
566 | tempText += " "; | ||
567 | tempText +=KGlobal::locale()->formatDate(((Event*)ev)->dtEnd().date(), true, KLocale::Userdefined); | ||
568 | KGlobal::locale()->setDateFormatShort(dfs); | ||
569 | } else { | ||
570 | tempText += " " ;//i18n("Allday:"); | ||
571 | } | ||
560 | } | 572 | } |
561 | 573 | ||
562 | } | 574 | } |
563 | } | 575 | } |
564 | } else { | 576 | } else { |
565 | mTodos.append( ev ); | 577 | mTodos.append( ev ); |
566 | tempText += i18n("ToDo:"); | 578 | tempText += i18n("ToDo:"); |
579 | if ( KOPrefs::instance()->mWhatsNextTime2Lines ) | ||
580 | tempText += " "; | ||
567 | if (reply) { | 581 | if (reply) { |
568 | tempText += " "; | 582 | tempText += " "; |
569 | if ( noc != cdt ) { | 583 | if ( noc != cdt ) { |
570 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; | 584 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; |
571 | } | 585 | } |
572 | } else { | 586 | } else { |
573 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { | 587 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { |
574 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; | 588 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; |
575 | QString dfs = KGlobal::locale()->dateFormatShort(); | 589 | QString dfs = KGlobal::locale()->dateFormatShort(); |
576 | KGlobal::locale()->setDateFormatShort("%d.%b"); | 590 | KGlobal::locale()->setDateFormatShort("%d.%b"); |
577 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; | 591 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; |
578 | KGlobal::locale()->setDateFormatShort(dfs); | 592 | KGlobal::locale()->setDateFormatShort(dfs); |
579 | } else { | 593 | } else { |
580 | if (!ev->doesFloat() ) | 594 | if (!ev->doesFloat() ) |
581 | if( ( (Todo*)ev)->dtDue() < cdt ) { | 595 | if( ( (Todo*)ev)->dtDue() < cdt ) { |
582 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; | 596 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; |
583 | 597 | ||
584 | 598 | ||
585 | } else | 599 | } else |
586 | tempText +=((Todo*)ev)->dtDueTimeStr(); | 600 | tempText +=((Todo*)ev)->dtDueTimeStr(); |
587 | mTodos.append( ev ); | 601 | mTodos.append( ev ); |
588 | } | 602 | } |
589 | } | 603 | } |
590 | } | 604 | } |