-rw-r--r-- | core/pim/todo/mainwindow.cpp | 3 | ||||
-rw-r--r-- | core/pim/todo/todotable.cpp | 17 |
2 files changed, 13 insertions, 7 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 5609211..b7b1da0 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -258,4 +258,7 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) : table->viewport()->setUpdatesEnabled( TRUE ); + // Initialize the table + table->updateVisible(); + connect( completedAction, SIGNAL( toggled(bool) ), this, SLOT( showCompleted(bool) ) ); connect( showdeadlineAction, SIGNAL( toggled(bool) ), this, SLOT( showDeadline(bool) ) ); diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp index 877308a..52a3087 100644 --- a/core/pim/todo/todotable.cpp +++ b/core/pim/todo/todotable.cpp @@ -307,7 +307,4 @@ void TodoTable::slotClicked( int row, int col, int, const QPoint &pos ) break; case 2: - // may as well edit it... - // menuTimer->stop(); - // emit signalEdit(); // Show detailed view of the selected entry { @@ -320,5 +317,5 @@ void TodoTable::slotClicked( int row, int col, int, const QPoint &pos ) // may as well edit it... menuTimer->stop(); - // emit signalEdit(); + emit signalEdit(); break; } @@ -671,13 +668,19 @@ void TodoTable::keyPressEvent( QKeyEvent *e ) case 1: break; - case 2: + case 2:{ + ToDoEvent *todo = todoList[static_cast<CheckItem*>(item(currentRow(), 0))]; + emit showDetails(*todo); + break; + } + case 3: + // Future: Let us change the dueDate directly... emit signalEdit(); default: break; } - } else { + } else QTable::keyPressEvent( e ); } -} + QStringList TodoTable::categories() |