-rw-r--r-- | libopie/pim/oevent.cpp | 14 |
1 files changed, 13 insertions, 1 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 | |||
@@ -249,9 +249,21 @@ QString OEvent::toRichText()const { | |||
249 | } | 249 | } |
250 | return text; | 250 | return text; |
251 | } | 251 | } |
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 | } |
255 | QString OEvent::type()const { | 267 | QString OEvent::type()const { |
256 | return QString::fromLatin1("OEvent"); | 268 | return QString::fromLatin1("OEvent"); |
257 | } | 269 | } |