From 766ac02e5586cd67b75b320fe1abee513384860c Mon Sep 17 00:00:00 2001 From: drw Date: Wed, 16 Feb 2005 19:53:35 +0000 Subject: Applied Skyhusker's patch for bug #1538 --- (limited to 'core/pim/today') 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 @@ -89,7 +89,7 @@ void TodolistPluginWidget::getTodo() { 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 ) ) { @@ -103,7 +103,7 @@ 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; -- cgit v0.9.0.2