-rw-r--r-- | libopie/pim/oevent.cpp | 14 | ||||
-rw-r--r-- | libopie2/opiepim/oevent.cpp | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/libopie/pim/oevent.cpp b/libopie/pim/oevent.cpp index 28cf873..b731c8a 100644 --- a/libopie/pim/oevent.cpp +++ b/libopie/pim/oevent.cpp | |||
@@ -252,3 +252,15 @@ QString OEvent::toRichText()const { | |||
252 | QString OEvent::toShortText()const { | 252 | QString OEvent::toShortText()const { |
253 | return description(); | 253 | QString text; |
254 | text += QString::number( startDateTime().date().day() ); | ||
255 | text += "."; | ||
256 | text += QString::number( startDateTime().date().month() ); | ||
257 | text += "."; | ||
258 | text += QString::number( startDateTime().date().year() ); | ||
259 | text += " "; | ||
260 | text += QString::number( startDateTime().time().hour() ); | ||
261 | text += ":"; | ||
262 | text += QString::number( startDateTime().time().minute() ); | ||
263 | text += " - "; | ||
264 | text += description(); | ||
265 | return text; | ||
254 | } | 266 | } |
diff --git a/libopie2/opiepim/oevent.cpp b/libopie2/opiepim/oevent.cpp index 28cf873..b731c8a 100644 --- a/libopie2/opiepim/oevent.cpp +++ b/libopie2/opiepim/oevent.cpp | |||
@@ -252,3 +252,15 @@ QString OEvent::toRichText()const { | |||
252 | QString OEvent::toShortText()const { | 252 | QString OEvent::toShortText()const { |
253 | return description(); | 253 | QString text; |
254 | text += QString::number( startDateTime().date().day() ); | ||
255 | text += "."; | ||
256 | text += QString::number( startDateTime().date().month() ); | ||
257 | text += "."; | ||
258 | text += QString::number( startDateTime().date().year() ); | ||
259 | text += " "; | ||
260 | text += QString::number( startDateTime().time().hour() ); | ||
261 | text += ":"; | ||
262 | text += QString::number( startDateTime().time().minute() ); | ||
263 | text += " - "; | ||
264 | text += description(); | ||
265 | return text; | ||
254 | } | 266 | } |