summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/oevent.cpp14
-rw-r--r--libopie2/opiepim/oevent.cpp14
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
@@ -249,9 +249,21 @@ QString OEvent::toRichText()const {
249 } 249 }
250 return text; 250 return text;
251} 251}
252QString OEvent::toShortText()const { 252QString 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}
255QString OEvent::type()const { 267QString OEvent::type()const {
256 return QString::fromLatin1("OEvent"); 268 return QString::fromLatin1("OEvent");
257} 269}
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
@@ -249,9 +249,21 @@ QString OEvent::toRichText()const {
249 } 249 }
250 return text; 250 return text;
251} 251}
252QString OEvent::toShortText()const { 252QString 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}
255QString OEvent::type()const { 267QString OEvent::type()const {
256 return QString::fromLatin1("OEvent"); 268 return QString::fromLatin1("OEvent");
257} 269}