author | zecke <zecke> | 2002-10-07 14:59:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-07 14:59:17 (UTC) |
commit | 645b377506fb32f4519e70d43c020084943debae (patch) (side-by-side diff) | |
tree | 95398d3a8aeb0342e08732c203eda5098beb92cb | |
parent | a7b03f9c31f515747663f07b6665744369e57ba8 (diff) | |
download | opie-645b377506fb32f4519e70d43c020084943debae.zip opie-645b377506fb32f4519e70d43c020084943debae.tar.gz opie-645b377506fb32f4519e70d43c020084943debae.tar.bz2 |
Switch to sorted stuff for TableView as default
Stefan it's safe
-rw-r--r-- | core/pim/todo/tableview.cpp | 7 | ||||
-rw-r--r-- | core/pim/todo/todoview.cpp | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp index 097af39..eaaf1bc 100644 --- a/core/pim/todo/tableview.cpp +++ b/core/pim/todo/tableview.cpp @@ -143,7 +143,10 @@ void TableView::showOverDue( bool ) { void TableView::updateView( ) { + setSortOrder( 0 ); + setAscending( true ); + sort(); OTodoAccess::List::Iterator it, end; - it = list().begin(); - end = list().end(); + it = sorted().begin(); + end = sorted().end(); qWarning("setTodos"); QTime time; diff --git a/core/pim/todo/todoview.cpp b/core/pim/todo/todoview.cpp index b77baed..06eaaa9 100644 --- a/core/pim/todo/todoview.cpp +++ b/core/pim/todo/todoview.cpp @@ -60,4 +60,5 @@ OTodoAccess::List TodoView::sorted(){ void TodoView::sort() { m_sort = todoWindow()->sorted(m_asc,m_sortOrder ); + qWarning("m_sort.count() = %d", m_sort.count() ); } void TodoView::sort(int sort) { |