author | harlekin <harlekin> | 2002-04-10 16:57:56 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-04-10 16:57:56 (UTC) |
commit | bbc11689a4f22d825a75b456811f3c8f0031b37d (patch) (side-by-side diff) | |
tree | fb46122714b556946b556a94bd19cbe8652705e6 | |
parent | 34e0e7af48992314d461be1a5a573dc0967fe260 (diff) | |
download | opie-bbc11689a4f22d825a75b456811f3c8f0031b37d.zip opie-bbc11689a4f22d825a75b456811f3c8f0031b37d.tar.gz opie-bbc11689a4f22d825a75b456811f3c8f0031b37d.tar.bz2 |
fix
-rw-r--r-- | core/pim/today/today.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 028947d..3d17379 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -525,49 +525,49 @@ DateBookEventLater::DateBookEventLater(const EffectiveEvent &ev, QString msg; QTime time = QTime::currentTime(); Config config( "qpe" ); // if 24 h format ampm = config.readBoolEntry( "AMPM", TRUE ); if ((time.toString() <= TimeString::dateString((ev).event().end())) ) { // show only later appointments msg += "<B>" + (ev).description() + "</B>"; if ( (ev).event().hasAlarm() ) { msg += " <b>[with alarm]</b>"; } // include location or not if (SHOW_LOCATION == 1) { msg += "<BR><i>" + (ev).location() + "</i>"; } if ( (TimeString::timeString(QTime((ev).event().start().time()) ) == "00:00") && (TimeString::timeString(QTime((ev).event().end().time()) ) == "23:59") ) { msg += "<br>All day"; } else { // start time of event - msg += "<br>" + ampmTime(QTime((ev).event().start().time()) ) + msg += "<br>" + ampmTime(QTime((ev).event().start().time()) ); // end time of event + "<b> - </b>" + ampmTime(QTime((ev).event().end().time()) ); } // include possible note or not if (SHOW_NOTES == 1) { msg += "<br> <i>note</i>:" +((ev).notes()).mid(0, MAX_CHAR_CLIP); } } setText(msg); connect(this, SIGNAL(clicked()), this, SLOT(editMe())); setAlignment( int( QLabel::WordBreak | QLabel::AlignLeft ) ); } QString DateBookEventLater::ampmTime(QTime tm) { QString s; if( ampm ) { int hour = tm.hour(); if (hour == 0) hour = 12; if (hour > 12) hour -= 12; |