summaryrefslogtreecommitdiff
path: root/core/pim/todo/todomanager.cpp
authorzecke <zecke>2004-11-18 21:55:17 (UTC)
committer zecke <zecke>2004-11-18 21:55:17 (UTC)
commitfdef8103e849b674c95d01785259e072bcfb5a4b (patch) (side-by-side diff)
tree411432edf236f8858094598617383dea95c14c3a /core/pim/todo/todomanager.cpp
parentc94afa23120bb72709973ae4711106e6e502fe65 (diff)
downloadopie-fdef8103e849b674c95d01785259e072bcfb5a4b.zip
opie-fdef8103e849b674c95d01785259e072bcfb5a4b.tar.gz
opie-fdef8103e849b674c95d01785259e072bcfb5a4b.tar.bz2
-Kill owarn statements from the code
-Kill magic numbers and use enum values
Diffstat (limited to 'core/pim/todo/todomanager.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/todomanager.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/pim/todo/todomanager.cpp b/core/pim/todo/todomanager.cpp
index c4b8fbc..7136f9a 100644
--- a/core/pim/todo/todomanager.cpp
+++ b/core/pim/todo/todomanager.cpp
@@ -39,6 +39,2 @@ TodoManager::TodoManager( QObject *obj )
m_db = 0l;
- QTime time;
- time.start();
- int el = time.elapsed();
- owarn << "QTimer for loading " << el/1000 << oendl;
}
@@ -51,3 +47,2 @@ OPimTodo TodoManager::event(int uid ) {
void TodoManager::updateList() {
- owarn << "update lists" << oendl;
m_list = m_db->allRecords();
@@ -61,3 +56,3 @@ OPimTodoAccess::List TodoManager::sorted( bool asc, int so, int f, int cat ) {
OPimTodoAccess::List::Iterator TodoManager::overDue() {
- int filter = 2 | 1;
+ int filter = Opie::OPimTodoAccess::FilterCategory | Opie::OPimTodoAccess::OnlyOverDue;
m_list = m_db->sorted(m_asc, m_sortOrder, filter, m_ca );