-rw-r--r-- | core/pim/todo/todotable.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp index d0bc61c..753c036 100644 --- a/core/pim/todo/todotable.cpp +++ b/core/pim/todo/todotable.cpp | |||
@@ -305,13 +305,19 @@ void TodoTable::slotClicked( int row, int col, int, const QPoint &pos ) | |||
305 | case 1: | 305 | case 1: |
306 | break; | 306 | break; |
307 | case 2: | 307 | case 2: |
308 | // may as well edit it... | 308 | // may as well edit it... |
309 | // menuTimer->stop(); | 309 | // menuTimer->stop(); |
310 | // emit signalEdit(); | 310 | // emit signalEdit(); |
311 | // fall through | 311 | // Show detailed view of the selected entry |
312 | { | ||
313 | menuTimer->stop(); | ||
314 | ToDoEvent *todo = todoList[static_cast<CheckItem*>(item(row, 0))]; | ||
315 | emit showDetails( *todo ); | ||
316 | } | ||
317 | break; | ||
312 | case 3: | 318 | case 3: |
313 | // may as well edit it... | 319 | // may as well edit it... |
314 | menuTimer->stop(); | 320 | menuTimer->stop(); |
315 | // emit signalEdit(); | 321 | // emit signalEdit(); |
316 | break; | 322 | break; |
317 | } | 323 | } |
@@ -342,13 +348,13 @@ void TodoTable::internalAddEntries( QList<ToDoEvent> &list ) | |||
342 | insertIntoTable( it, row++ ); | 348 | insertIntoTable( it, row++ ); |
343 | } | 349 | } |
344 | 350 | ||
345 | 351 | ||
346 | ToDoEvent TodoTable::currentEntry() const | 352 | ToDoEvent TodoTable::currentEntry() const |
347 | { | 353 | { |
348 | printf ("in currentEntry\n"); | 354 | //qWarning ("in currentEntry\n"); |
349 | 355 | ||
350 | QTableItem *i = item( currentRow(), 0 ); | 356 | QTableItem *i = item( currentRow(), 0 ); |
351 | if ( !i || rowHeight( currentRow() ) <= 0 ) | 357 | if ( !i || rowHeight( currentRow() ) <= 0 ) |
352 | return ToDoEvent(); | 358 | return ToDoEvent(); |
353 | ToDoEvent *todo = todoList[(CheckItem*)i]; | 359 | ToDoEvent *todo = todoList[(CheckItem*)i]; |
354 | todo->setCompleted( ( (CheckItem*)item( currentRow(), 0 ) )->isChecked() ); | 360 | todo->setCompleted( ( (CheckItem*)item( currentRow(), 0 ) )->isChecked() ); |