author | harlekin <harlekin> | 2002-02-21 16:57:40 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-02-21 16:57:40 (UTC) |
commit | ec52599a5a9ca3397e6375b7aeb4ee391c614bfb (patch) (unidiff) | |
tree | 5570c7a511f7d089e410a5fecadb2fee0fb73d63 /core/pim/today/today.cpp | |
parent | 4c965fa187f642cb3db4cd32d70a68cfa8c41022 (diff) | |
download | opie-ec52599a5a9ca3397e6375b7aeb4ee391c614bfb.zip opie-ec52599a5a9ca3397e6375b7aeb4ee391c614bfb.tar.gz opie-ec52599a5a9ca3397e6375b7aeb4ee391c614bfb.tar.bz2 |
all day detection, bumped to 0.2.6
-rw-r--r-- | core/pim/today/today.cpp | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 9e5c27e..1f6f34e 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -191,11 +191,18 @@ void Today::getDates() | |||
191 | { | 191 | { |
192 | msg+= "<BR>" + (*it).location(); | 192 | msg+= "<BR><i>" + (*it).location(); |
193 | } | 193 | } |
194 | msg += "<BR>" | 194 | msg += "</i><BR>"; |
195 | 195 | ||
196 | if ( (TimeString::timeString(QTime((*it).event().start().time()) ) == "00:00") && (TimeString::timeString(QTime((*it).event().end().time()) ) == "23:59") ) | ||
197 | { | ||
198 | msg += "All day"; | ||
199 | } | ||
200 | else | ||
201 | { | ||
196 | // start time of event | 202 | // start time of event |
197 | + TimeString::timeString(QTime((*it).event().start().time()) ) | 203 | msg += TimeString::timeString(QTime((*it).event().start().time()) ) |
198 | // end time of event | 204 | // end time of event |
199 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) | 205 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ); |
200 | + "<BR>"; | 206 | } |
207 | msg += "<BR>"; | ||
201 | // include possible note or not | 208 | // include possible note or not |
@@ -216,10 +223,18 @@ void Today::getDates() | |||
216 | { | 223 | { |
217 | msg+= "<BR>" + (*it).location(); | 224 | msg+= "<BR><i>" + (*it).location(); |
218 | } | 225 | } |
219 | msg += "<BR>" | 226 | msg += "</i><BR>"; |
227 | |||
228 | if ( (TimeString::timeString(QTime((*it).event().start().time()) ) == "00:00") && (TimeString::timeString(QTime((*it).event().end().time()) ) == "23:59") ) | ||
229 | { | ||
230 | msg += "All day"; | ||
231 | } | ||
232 | else | ||
233 | { | ||
220 | // start time of event | 234 | // start time of event |
221 | + TimeString::timeString(QTime((*it).event().start().time()) ) | 235 | msg += TimeString::timeString(QTime((*it).event().start().time()) ) |
222 | // end time of event | 236 | // end time of event |
223 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) | 237 | + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ); |
224 | + "<BR>"; | 238 | } |
239 | msg += "<BR>"; | ||
225 | // include possible note or not | 240 | // include possible note or not |