summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp40
1 files changed, 23 insertions, 17 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index ad1ec90..62becb0 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -24,3 +24,2 @@
#include <qpe/qcopenvelope_qws.h>
-//#include <qpe/qprocess.h>
#include <qpe/resource.h>
@@ -40,3 +39,2 @@
#include <qpixmap.h>
-//#include <qfileinfo.h>
#include <qlayout.h>
@@ -45,3 +43,2 @@
-//#include <iostream.h>
#include <unistd.h>
@@ -386,6 +383,11 @@ void Today::getTodo() {
it!=overDueList.end(); ++it ) {
- if (!(*it).isCompleted() && ( ammount < MAX_LINES_TASK) ) {
- tmpout += "<font color=#e00000><b>-" +((*it).description()).mid(0, MAX_CHAR_CLIP) + "</b></font><br>";
- ammount++;
- }
+ if (!(*it).isCompleted() && ( ammount < MAX_LINES_TASK) ) {
+ QString desc = (*it).summary();
+ if( desc.isEmpty() ) {
+ desc = (*it).description();
+ }
+ tmpout += "<font color=#e00000><b>-" + desc.mid(0, MAX_CHAR_CLIP) + "</b></font><br>";
+
+ ammount++;
+ }
}
@@ -397,11 +399,15 @@ void Today::getTodo() {
it!=openTodo.end(); ++it ) {
- if (!(*it).isCompleted()){
- count +=1;
- // not the overdues, we allready got them, and not if we are
- // over the maxlines
- if (!(*it).isOverdue() && ( ammount < MAX_LINES_TASK) ) {
- tmpout += "<b>-</b>" + ((*it).description()).mid(0, MAX_CHAR_CLIP) + "<br>";
- ammount++;
+ if (!(*it).isCompleted()){
+ count +=1;
+ // not the overdues, we allready got them, and not if we are
+ // over the maxlines
+ if (!(*it).isOverdue() && ( ammount < MAX_LINES_TASK) ) {
+ QString desc = (*it).summary();
+ if( desc.isEmpty() ) {
+ desc = (*it).description();
+ }
+ tmpout += "<b>-</b>" + desc.mid(0, MAX_CHAR_CLIP) + "<br>";
+ ammount++;
+ }
}
- }
}
@@ -446,4 +452,4 @@ void Today::editCard() {
void Today::startDatebook() {
- QCopEnvelope e("QPE/System", "execute(QString)");
- e << QString("datebook");
+ QCopEnvelope e("QPE/System", "execute(QString)");
+ e << QString("datebook");
}