summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
authorharlekin <harlekin>2002-02-21 16:16:13 (UTC)
committer harlekin <harlekin>2002-02-21 16:16:13 (UTC)
commit4c965fa187f642cb3db4cd32d70a68cfa8c41022 (patch) (side-by-side diff)
treef1f65a4b0b332b838fef9f0fda95c92dfc93247e /core/pim/today/today.cpp
parent17e96f64d6b66fac5f0e206492149d461e2ad900 (diff)
downloadopie-4c965fa187f642cb3db4cd32d70a68cfa8c41022.zip
opie-4c965fa187f642cb3db4cd32d70a68cfa8c41022.tar.gz
opie-4c965fa187f642cb3db4cd32d70a68cfa8c41022.tar.bz2
added scrollbars to dates and todo
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index bed3a74..9e5c27e 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -147,13 +147,12 @@ void Today::startConfig()
cfg.write();
draw();
}
-
/*
* Get all events that are in the datebook xml file for today
*/
void Today::getDates()
{
QDate date = QDate::currentDate();
@@ -173,17 +172,15 @@ void Today::getDates()
it!=list.end(); ++it ) {
count++;
if ( count <= MAX_LINES_MEET )
{
- //only get events past current time (start or end??)
//cout << time.toString() << endl;
//cout << TimeString::dateString((*it).event().end()) << endl;
- // still some bug in here, 1 h off
-
+
// decide if to get all day or only later appointments
if (!ONLY_LATER)
{
msg += "<B>" + (*it).description() + "</B>";
if ( (*it).event().hasAlarm() )
{
@@ -192,12 +189,13 @@ void Today::getDates()
// include location or not
if (SHOW_LOCATION == 1)
{
msg+= "<BR>" + (*it).location();
}
msg += "<BR>"
+
// start time of event
+ TimeString::timeString(QTime((*it).event().start().time()) )
// end time of event
+ "<b> - </b>" + TimeString::timeString(QTime((*it).event().end().time()) )
+ "<BR>";
// include possible note or not