From 5929a5467aacf1b95a570bdb560d03b28d9ae679 Mon Sep 17 00:00:00 2001 From: deller Date: Sun, 03 Apr 2005 17:03:30 +0000 Subject: - fix bug #1535 (Missing line break and unnecessary location shown with Today-Calendar plugin) - document bugs 1535 and my last commits in the Changelog --- (limited to 'core/pim') diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp index f5b0d0a..a540327 100644 --- a/core/pim/today/plugins/datebook/datebookevent.cpp +++ b/core/pim/today/plugins/datebook/datebookevent.cpp @@ -50,8 +50,9 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, } // include location or not - if ( show_location ) { - msg += "
" + (ev).location() + ""; + if ( show_location && !(ev).location().isEmpty() ) { + if ( (ev).location() != tr("(Unknown)") ) + msg += "
" + (ev).location() + ""; } QString timeSpacer = " "; @@ -59,13 +60,14 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, timeSpacer = "
"; } + msg += timeSpacer; + if ( ( TimeString::timeString( QTime( (ev).event().start().time() ) ) == "00:00" ) && ( TimeString::timeString( QTime( (ev).event().end().time() ) ) == "23:59" ) ) { msg += tr ( "All day" ); } else { // start time of event // QDate tempDate = (ev).event().start().date(); - msg += timeSpacer; msg += ampmTime( QTime( (ev).event().start().time() ) ) // end time of event + " - " + ampmTime( QTime( (ev).event().end().time() ) ); -- cgit v0.9.0.2