Diffstat (limited to 'core/pim/today/plugins/todolist/todopluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/todolist/todopluginwidget.cpp | 4 |
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 @@ -88,9 +88,9 @@ void TodolistPluginWidget::getTodo() { 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(); @@ -102,9 +102,9 @@ void TodolistPluginWidget::getTodo() { } } // 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 |