summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.cpp
authorzautrix <zautrix>2005-07-26 13:38:06 (UTC)
committer zautrix <zautrix>2005-07-26 13:38:06 (UTC)
commitb37d71f782540851846613a70a60daf86816f7ec (patch) (side-by-side diff)
treecd69f9e9a57903a2d463f9f30d376631b705f279 /korganizer/kowhatsnextview.cpp
parent346437d384dd780a1f7b75dd9caa3770525edfda (diff)
downloadkdepimpi-b37d71f782540851846613a70a60daf86816f7ec.zip
kdepimpi-b37d71f782540851846613a70a60daf86816f7ec.tar.gz
kdepimpi-b37d71f782540851846613a70a60daf86816f7ec.tar.bz2
fixxx
Diffstat (limited to 'korganizer/kowhatsnextview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 221debc..fafcb58 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -526,12 +526,14 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a
QString dateText;
// qDebug("%s %s %s %s ", mEventDate.toString().latin1(),event->summary().latin1(), st .toString().latin1(),end.toString().latin1() );
if ( st.date() < mEventDate )
dateText = "++:++-";
else
dateText = event->dtStartTimeStr() + "-";
+ if ( KOPrefs::instance()->mWhatsNextTime2Lines )
+ dateText += " ";
if ( end.date() > mEventDate )
dateText += "++:++";
else
dateText += event->dtEndTimeStr();
if ( notRed )
tempText += dateText;
@@ -553,20 +555,32 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a
if ( ev->isBirthday())
tempText += "<font color=\"#00B000\">" + i18n("Birthday") +":</font>";
else
tempText += "<font color=\"#00B0000\">" + i18n("Anniversary")+":</font>";
} else {
- tempText += i18n("Allday:");
+ if ( ((Event*)ev)->isMultiDay() ) {
+ QString dfs = KGlobal::locale()->dateFormatShort();
+ KGlobal::locale()->setDateFormatShort("%d.%b");
+ tempText +=KGlobal::locale()->formatDate(((Event*)ev)->dtStart().date(), true, KLocale::Userdefined) + "-";
+ if ( KOPrefs::instance()->mWhatsNextTime2Lines )
+ tempText += " ";
+ tempText +=KGlobal::locale()->formatDate(((Event*)ev)->dtEnd().date(), true, KLocale::Userdefined);
+ KGlobal::locale()->setDateFormatShort(dfs);
+ } else {
+ tempText += " " ;//i18n("Allday:");
+ }
}
}
}
} else {
mTodos.append( ev );
tempText += i18n("ToDo:");
+ if ( KOPrefs::instance()->mWhatsNextTime2Lines )
+ tempText += " ";
if (reply) {
tempText += " ";
if ( noc != cdt ) {
tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": ";
}
} else {