summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
Unidiff
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp43
1 files changed, 29 insertions, 14 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
@@ -189,15 +189,22 @@ void Today::getDates()
189 // include location or not 189 // include location or not
190 if (SHOW_LOCATION == 1) 190 if (SHOW_LOCATION == 1)
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 // start time of event 196 if ( (TimeString::timeString(QTime((*it).event().start().time()) ) == "00:00") && (TimeString::timeString(QTime((*it).event().end().time()) ) == "23:59") )
197 + TimeString::timeString(QTime((*it).event().start().time()) ) 197 {
198 // end time of event 198 msg += "All day";
199 + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) 199 }
200 + "<BR>"; 200 else
201 {
202 // start time of event
203 msg += TimeString::timeString(QTime((*it).event().start().time()) )
204 // end time of event
205 + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) );
206 }
207 msg += "<BR>";
201 // include possible note or not 208 // include possible note or not
202 if (SHOW_NOTES == 1) 209 if (SHOW_NOTES == 1)
203 { 210 {
@@ -214,14 +221,22 @@ void Today::getDates()
214 // include location or not 221 // include location or not
215 if (SHOW_LOCATION == 1) 222 if (SHOW_LOCATION == 1)
216 { 223 {
217 msg+= "<BR>" + (*it).location(); 224 msg+= "<BR><i>" + (*it).location();
218 } 225 }
219 msg += "<BR>" 226 msg += "</i><BR>";
220 // start time of event 227
221 + TimeString::timeString(QTime((*it).event().start().time()) ) 228 if ( (TimeString::timeString(QTime((*it).event().start().time()) ) == "00:00") && (TimeString::timeString(QTime((*it).event().end().time()) ) == "23:59") )
222 // end time of event 229 {
223 + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) ) 230 msg += "All day";
224 + "<BR>"; 231 }
232 else
233 {
234 // start time of event
235 msg += TimeString::timeString(QTime((*it).event().start().time()) )
236 // end time of event
237 + "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) );
238 }
239 msg += "<BR>";
225 // include possible note or not 240 // include possible note or not
226 if (SHOW_NOTES == 1) 241 if (SHOW_NOTES == 1)
227 { 242 {