author | tille <tille> | 2003-05-09 11:45:00 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-09 11:45:00 (UTC) |
commit | 7183dce01fa07a905d259cb79a8792ca993a75f6 (patch) (unidiff) | |
tree | 2531c922576652d6f87a91bac14d2082343ded8c /libopie2 | |
parent | 49cc0e47343578c0dfe1294afdf574ebfc1f4f4b (diff) | |
download | opie-7183dce01fa07a905d259cb79a8792ca993a75f6.zip opie-7183dce01fa07a905d259cb79a8792ca993a75f6.tar.gz opie-7183dce01fa07a905d259cb79a8792ca993a75f6.tar.bz2 |
toShortString now contains start time and date
-rw-r--r-- | libopie2/opiepim/oevent.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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 | |||
@@ -251,5 +251,17 @@ QString OEvent::toRichText()const { | |||
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 { |