author | drw <drw> | 2005-02-16 19:53:35 (UTC) |
---|---|---|
committer | drw <drw> | 2005-02-16 19:53:35 (UTC) |
commit | 766ac02e5586cd67b75b320fe1abee513384860c (patch) (unidiff) | |
tree | 17fc4e86195a31fe071c183c691464c34c5deae4 /core/pim/today/plugins/todolist | |
parent | 73e64ac16b0c688c77bc650cd8572314cd846188 (diff) | |
download | opie-766ac02e5586cd67b75b320fe1abee513384860c.zip opie-766ac02e5586cd67b75b320fe1abee513384860c.tar.gz opie-766ac02e5586cd67b75b320fe1abee513384860c.tar.bz2 |
Applied Skyhusker's patch for bug #1538
Diffstat (limited to 'core/pim/today/plugins/todolist') (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 | |||
@@ -86,13 +86,13 @@ void TodolistPluginWidget::getTodo() { | |||
86 | QString output; | 86 | QString output; |
87 | QString tmpout; | 87 | QString tmpout; |
88 | int count = 0; | 88 | int count = 0; |
89 | int ammount = 0; | 89 | int ammount = 0; |
90 | 90 | ||
91 | // get overdue todos first | 91 | // get overdue todos first |
92 | m_list = todo->sorted( true, 3, 2, 1); | 92 | m_list = todo->sorted( true, OPimTodoAccess::Deadline, OPimTodoAccess::OnlyOverDue, 1); |
93 | 93 | ||
94 | for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) { | 94 | for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) { |
95 | if (!(*m_it).isCompleted() && ( ammount < m_maxLinesTask ) ) { | 95 | if (!(*m_it).isCompleted() && ( ammount < m_maxLinesTask ) ) { |
96 | QString desc = (*m_it).summary(); | 96 | QString desc = (*m_it).summary(); |
97 | if( desc.isEmpty() ) { | 97 | if( desc.isEmpty() ) { |
98 | desc = (*m_it).description(); | 98 | desc = (*m_it).description(); |
@@ -100,13 +100,13 @@ void TodolistPluginWidget::getTodo() { | |||
100 | tmpout += "<font color=#e00000><b>[" + QString("%1").arg((*m_it).priority() ) + "]" + desc.mid( 0, m_maxCharClip ) + "</b></font><br>"; | 100 | tmpout += "<font color=#e00000><b>[" + QString("%1").arg((*m_it).priority() ) + "]" + desc.mid( 0, m_maxCharClip ) + "</b></font><br>"; |
101 | ammount++ ; | 101 | ammount++ ; |
102 | } | 102 | } |
103 | } | 103 | } |
104 | 104 | ||
105 | // get total number of still open todos | 105 | // get total number of still open todos |
106 | m_list = todo->sorted( true, 1, 4, 1); | 106 | m_list = todo->sorted( true, 1, OPimTodoAccess::DoNotShowCompleted, 1); |
107 | 107 | ||
108 | for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) { | 108 | for ( m_it = m_list.begin(); m_it != m_list.end(); ++m_it ) { |
109 | count +=1; | 109 | count +=1; |
110 | // not the overdues, we allready got them, and not if we are | 110 | // not the overdues, we allready got them, and not if we are |
111 | // over the maxlines | 111 | // over the maxlines |
112 | if ( !(*m_it).isOverdue() && ( ammount < m_maxLinesTask ) ) { | 112 | if ( !(*m_it).isOverdue() && ( ammount < m_maxLinesTask ) ) { |