summaryrefslogtreecommitdiff
authordrw <drw>2005-02-16 19:53:35 (UTC)
committer drw <drw>2005-02-16 19:53:35 (UTC)
commit766ac02e5586cd67b75b320fe1abee513384860c (patch) (side-by-side diff)
tree17fc4e86195a31fe071c183c691464c34c5deae4
parent73e64ac16b0c688c77bc650cd8572314cd846188 (diff)
downloadopie-766ac02e5586cd67b75b320fe1abee513384860c.zip
opie-766ac02e5586cd67b75b320fe1abee513384860c.tar.gz
opie-766ac02e5586cd67b75b320fe1abee513384860c.tar.bz2
Applied Skyhusker's patch for bug #1538
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/todolist/todopluginwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/today/plugins/todolist/todopluginwidget.cpp b/core/pim/today/plugins/todolist/todopluginwidget.cpp
index 7ce703e..5afd0d8 100644
--- a/core/pim/today/plugins/todolist/todopluginwidget.cpp
+++ b/core/pim/today/plugins/todolist/todopluginwidget.cpp
@@ -84,31 +84,31 @@ void TodolistPluginWidget::getTodo() {
QString output;
QString tmpout;
int count = 0;
int ammount = 0;
// get overdue todos first
- m_list = todo->sorted( true, 3, 2, 1);
+ m_list = todo->sorted( true, OPimTodoAccess::Deadline, OPimTodoAccess::OnlyOverDue, 1);
for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) {
if (!(*m_it).isCompleted() && ( ammount < m_maxLinesTask ) ) {
QString desc = (*m_it).summary();
if( desc.isEmpty() ) {
desc = (*m_it).description();
}
tmpout += "<font color=#e00000><b>[" + QString("%1").arg((*m_it).priority() ) + "]" + desc.mid( 0, m_maxCharClip ) + "</b></font><br>";
ammount++ ;
}
}
// get total number of still open todos
- m_list = todo->sorted( true, 1, 4, 1);
+ m_list = todo->sorted( true, 1, OPimTodoAccess::DoNotShowCompleted, 1);
for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) {
count +=1;
// not the overdues, we allready got them, and not if we are
// over the maxlines
if ( !(*m_it).isOverdue() && ( ammount < m_maxLinesTask ) ) {
QString desc = (*m_it).summary();
if( desc.isEmpty() ) {