summaryrefslogtreecommitdiff
authorzecke <zecke>2002-10-07 14:59:17 (UTC)
committer zecke <zecke>2002-10-07 14:59:17 (UTC)
commit645b377506fb32f4519e70d43c020084943debae (patch) (unidiff)
tree95398d3a8aeb0342e08732c203eda5098beb92cb
parenta7b03f9c31f515747663f07b6665744369e57ba8 (diff)
downloadopie-645b377506fb32f4519e70d43c020084943debae.zip
opie-645b377506fb32f4519e70d43c020084943debae.tar.gz
opie-645b377506fb32f4519e70d43c020084943debae.tar.bz2
Switch to sorted stuff for TableView as default
Stefan it's safe
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp7
-rw-r--r--core/pim/todo/todoview.cpp1
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
@@ -141,11 +141,14 @@ void TableView::showOverDue( bool ) {
141 updateView(); 141 updateView();
142} 142}
143 143
144void TableView::updateView( ) { 144void TableView::updateView( ) {
145 setSortOrder( 0 );
146 setAscending( true );
147 sort();
145 OTodoAccess::List::Iterator it, end; 148 OTodoAccess::List::Iterator it, end;
146 it = list().begin(); 149 it = sorted().begin();
147 end = list().end(); 150 end = sorted().end();
148 qWarning("setTodos"); 151 qWarning("setTodos");
149 QTime time; 152 QTime time;
150 time.start(); 153 time.start();
151 m_enablePaint = false; 154 m_enablePaint = false;
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
@@ -58,8 +58,9 @@ OTodoAccess::List TodoView::sorted(){
58 return m_sort; 58 return m_sort;
59} 59}
60void TodoView::sort() { 60void TodoView::sort() {
61 m_sort = todoWindow()->sorted(m_asc,m_sortOrder ); 61 m_sort = todoWindow()->sorted(m_asc,m_sortOrder );
62 qWarning("m_sort.count() = %d", m_sort.count() );
62} 63}
63void TodoView::sort(int sort) { 64void TodoView::sort(int sort) {
64 m_sort = todoWindow()->sorted(m_asc, m_sortOrder, sort ); 65 m_sort = todoWindow()->sorted(m_asc, m_sortOrder, sort );
65} 66}