summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-03-11 21:33:49 (UTC)
committer harlekin <harlekin>2002-03-11 21:33:49 (UTC)
commit3c5feb8676f75f4e218ea0278f02d225e8985301 (patch) (side-by-side diff)
treea57765d4e72a73e3310eaa91fa9cce2e51a6710a
parent990d0ad3664c24e8909027ae4d3839f4e318ea00 (diff)
downloadopie-3c5feb8676f75f4e218ea0278f02d225e8985301.zip
opie-3c5feb8676f75f4e218ea0278f02d225e8985301.tar.gz
opie-3c5feb8676f75f4e218ea0278f02d225e8985301.tar.bz2
brown paperbag I
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 69bcb68..d10082f 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -414,61 +414,60 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev,
ClickableLabel(parent,name,fl), event(ev) {
QString msg;
QTime time = QTime::currentTime();
if (!ONLY_LATER) {
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();
msg += "</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>" + TimeString::timeString(QTime((ev).event().start().time()) )
// end time of event
+ "<b> - </b>" + TimeString::timeString(QTime((ev).event().end().time()) );
}
- msg += "<BR>";
// include possible note or not
if (SHOW_NOTES == 1) {
- msg += " <i>note</i>:" +((ev).notes()).mid(0, MAX_CHAR_CLIP) + "<br>";
+ msg += "<br> <i>note</i>:" +((ev).notes()).mid(0, MAX_CHAR_CLIP) + "<br>";
}
} else if ((time.toString() <= TimeString::dateString((ev).event().end())) ) {
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();
+ msg += "<BR><i>" + (ev).location();
msg += "</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>" + TimeString::timeString(QTime((ev).event().start().time()) )
// end time of event
+ "<b> - </b>" + TimeString::timeString(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) + "<br>";
}
}
setText(msg);
connect(this, SIGNAL(clicked()), this, SLOT(editMe()));
setAlignment( int( QLabel::WordBreak | QLabel::AlignLeft ) );
}
void DateBookEvent::editMe() {
emit editEvent(event.event());