-rw-r--r-- | core/pim/todo/tableview.cpp | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp index b7458d8..221faca 100644 --- a/core/pim/todo/tableview.cpp +++ b/core/pim/todo/tableview.cpp | |||
@@ -140,3 +140,3 @@ TableView::TableView( MainWindow* window, QWidget* wid ) | |||
140 | viewport()->update(); | 140 | viewport()->update(); |
141 | setSortOrder( 0 ); | 141 | setSortOrder( Opie::OPimTodoAccess::Completed ); |
142 | setAscending( TRUE ); | 142 | setAscending( TRUE ); |
@@ -197,3 +197,2 @@ void TableView::showOverDue( bool ) { | |||
197 | void TableView::updateView( ) { | 197 | void TableView::updateView( ) { |
198 | owarn << "update view" << oendl; | ||
199 | m_row = false; | 198 | m_row = false; |
@@ -211,3 +210,2 @@ void TableView::updateView( ) { | |||
211 | 210 | ||
212 | owarn << "setTodos" << oendl; | ||
213 | QTime time; | 211 | QTime time; |
@@ -256,4 +254,3 @@ void TableView::removeEvent( int ) { | |||
256 | } | 254 | } |
257 | void TableView::setShowCompleted( bool b) { | 255 | void TableView::setShowCompleted( bool ) { |
258 | owarn << "Show Completed " << b << oendl; | ||
259 | updateView(); | 256 | updateView(); |
@@ -261,3 +258,2 @@ void TableView::setShowCompleted( bool b) { | |||
261 | void TableView::setShowDeadline( bool b ) { | 258 | void TableView::setShowDeadline( bool b ) { |
262 | owarn << "Show Deadline " << b << oendl; | ||
263 | if ( b ) | 259 | if ( b ) |
@@ -284,3 +280,2 @@ void TableView::setShowDeadline( bool b ) { | |||
284 | void TableView::setShowCategory( const QString& str) { | 280 | void TableView::setShowCategory( const QString& str) { |
285 | owarn << "setShowCategory" << oendl; | ||
286 | if ( str != m_oleCat || m_first ) | 281 | if ( str != m_oleCat || m_first ) |
@@ -349,4 +344,2 @@ void TableView::slotPressed(int row, int col, int, | |||
349 | 344 | ||
350 | owarn << "pressed row " << row << " col " << col << " x:" << point.x() | ||
351 | << "+y:" << point.y() << oendl; | ||
352 | m_prevP = point; | 345 | m_prevP = point; |
@@ -357,3 +350,2 @@ void TableView::slotPressed(int row, int col, int, | |||
357 | void TableView::slotValueChanged( int, int ) { | 350 | void TableView::slotValueChanged( int, int ) { |
358 | owarn << "Value Changed" << oendl; | ||
359 | } | 351 | } |
@@ -373,3 +365,18 @@ QWidget* TableView::widget() { | |||
373 | void TableView::sortColumn( int col, bool asc, bool ) { | 365 | void TableView::sortColumn( int col, bool asc, bool ) { |
374 | owarn << "bool " << asc << oendl; | 366 | switch(col) { |
367 | case 1: | ||
368 | col = Opie::OPimTodoAccess::Priority; | ||
369 | break; | ||
370 | case 2: | ||
371 | col = Opie::OPimTodoAccess::SortSummary; | ||
372 | break; | ||
373 | case 3: | ||
374 | col = Opie::OPimTodoAccess::Deadline; | ||
375 | break; | ||
376 | case 0: | ||
377 | default: | ||
378 | col = Opie::OPimTodoAccess::Completed; | ||
379 | break; | ||
380 | } | ||
381 | |||
375 | setSortOrder( col ); | 382 | setSortOrder( col ); |
@@ -496,3 +503,2 @@ QWidget* TableView::createEditor(int row, int col, bool )const { | |||
496 | void TableView::setCellContentFromEditor(int row, int col ) { | 503 | void TableView::setCellContentFromEditor(int row, int col ) { |
497 | owarn << "set cell content from editor" << oendl; | ||
498 | if ( col == 1 ) { | 504 | if ( col == 1 ) { |
@@ -532,3 +538,2 @@ void TableView::slotPriority() { | |||
532 | void TableView::timerEvent( QTimerEvent* ) { | 538 | void TableView::timerEvent( QTimerEvent* ) { |
533 | // Opie::Core::owarn << "sorted " << sorted().count() << oendl; | ||
534 | if (sorted().count() == 0 ) | 539 | if (sorted().count() == 0 ) |
@@ -580,3 +585,2 @@ void TableView::contentsMouseReleaseEvent( QMouseEvent* e) { | |||
580 | int colNew = columnAt(e->x() ); | 585 | int colNew = columnAt(e->x() ); |
581 | owarn << "colNew: " << colNew << " colOld: " << colOld << oendl; | ||
582 | if ( row == rowAt( e->y() ) && row != -1 && | 586 | if ( row == rowAt( e->y() ) && row != -1 && |