author | tille <tille> | 2003-05-09 11:45:00 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-09 11:45:00 (UTC) |
commit | 7183dce01fa07a905d259cb79a8792ca993a75f6 (patch) (side-by-side diff) | |
tree | 2531c922576652d6f87a91bac14d2082343ded8c /libopie | |
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-- | 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 @@ -250,7 +250,19 @@ QString OEvent::toRichText()const { return text; } QString OEvent::toShortText()const { - return description(); + QString text; + text += QString::number( startDateTime().date().day() ); + text += "."; + text += QString::number( startDateTime().date().month() ); + text += "."; + text += QString::number( startDateTime().date().year() ); + text += " "; + text += QString::number( startDateTime().time().hour() ); + text += ":"; + text += QString::number( startDateTime().time().minute() ); + text += " - "; + text += description(); + return text; } QString OEvent::type()const { return QString::fromLatin1("OEvent"); |