author | harlekin <harlekin> | 2002-06-27 14:33:51 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-27 14:33:51 (UTC) |
commit | 63d7fd9b233a5b6a9e3670b6ef1c09a2e87ffa42 (patch) (side-by-side diff) | |
tree | e5c81e0728f394fba918f9e71cbacd33de870aee | |
parent | 540fd6a4a7cc86070c94f41833c4b9b9fa0e9824 (diff) | |
download | opie-63d7fd9b233a5b6a9e3670b6ef1c09a2e87ffa42.zip opie-63d7fd9b233a5b6a9e3670b6ef1c09a2e87ffa42.tar.gz opie-63d7fd9b233a5b6a9e3670b6ef1c09a2e87ffa42.tar.bz2 |
should fix bug #83
-rw-r--r-- | core/pim/today/today.cpp | 16 |
1 files changed, 11 insertions, 5 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> @@ -387,3 +384,8 @@ void Today::getTodo() { if (!(*it).isCompleted() && ( ammount < MAX_LINES_TASK) ) { - tmpout += "<font color=#e00000><b>-" +((*it).description()).mid(0, MAX_CHAR_CLIP) + "</b></font><br>"; + 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++; @@ -402,3 +404,7 @@ void Today::getTodo() { if (!(*it).isOverdue() && ( ammount < MAX_LINES_TASK) ) { - tmpout += "<b>-</b>" + ((*it).description()).mid(0, MAX_CHAR_CLIP) + "<br>"; + QString desc = (*it).summary(); + if( desc.isEmpty() ) { + desc = (*it).description(); + } + tmpout += "<b>-</b>" + desc.mid(0, MAX_CHAR_CLIP) + "<br>"; ammount++; |