author | zecke <zecke> | 2002-05-09 15:51:20 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-05-09 15:51:20 (UTC) |
commit | 168d7dcdaee8555365af4c918dc941d8cc0dcb68 (patch) (side-by-side diff) | |
tree | ce5b6b357c4247345797ae7c8c059532b3aa142d | |
parent | 7999411de407eaaf57cae9e2d0cb3767c714d161 (diff) | |
download | opie-168d7dcdaee8555365af4c918dc941d8cc0dcb68.zip opie-168d7dcdaee8555365af4c918dc941d8cc0dcb68.tar.gz opie-168d7dcdaee8555365af4c918dc941d8cc0dcb68.tar.bz2 |
Patch from Stefan Eilers to make the Table align better and the viewing of events more easy
-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 @@ -259,2 +259,5 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) : + // Initialize the table + table->updateVisible(); + connect( completedAction, SIGNAL( toggled(bool) ), this, SLOT( showCompleted(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 @@ -308,5 +308,2 @@ void TodoTable::slotClicked( int row, int col, int, const QPoint &pos ) case 2: - // may as well edit it... - // menuTimer->stop(); - // emit signalEdit(); // Show detailed view of the selected entry @@ -321,3 +318,3 @@ void TodoTable::slotClicked( int row, int col, int, const QPoint &pos ) menuTimer->stop(); - // emit signalEdit(); + emit signalEdit(); break; @@ -672,3 +669,9 @@ void TodoTable::keyPressEvent( QKeyEvent *e ) 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(); @@ -677,6 +680,6 @@ void TodoTable::keyPressEvent( QKeyEvent *e ) } - } else { + } else QTable::keyPressEvent( e ); } -} + |