From e25c5384f3f3025be64ed26d244c59afc5862711 Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 23 Apr 2002 12:45:20 +0000 Subject: Patch from Stefan Eilers for overview merged by hand --- (limited to 'core/pim/todo/todotable.cpp') 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,15 +305,21 @@ void TodoTable::slotClicked( int row, int col, int, const QPoint &pos ) case 1: break; case 2: - // may as well edit it... - // menuTimer->stop(); -// emit signalEdit(); - // fall through - case 3: - // may as well edit it... + // may as well edit it... + // menuTimer->stop(); + // emit signalEdit(); + // Show detailed view of the selected entry + { menuTimer->stop(); - // emit signalEdit(); - break; + ToDoEvent *todo = todoList[static_cast(item(row, 0))]; + emit showDetails( *todo ); + } + break; + case 3: + // may as well edit it... + menuTimer->stop(); + // emit signalEdit(); + break; } } @@ -345,7 +351,7 @@ void TodoTable::internalAddEntries( QList &list ) ToDoEvent TodoTable::currentEntry() const { - printf ("in currentEntry\n"); + //qWarning ("in currentEntry\n"); QTableItem *i = item( currentRow(), 0 ); if ( !i || rowHeight( currentRow() ) <= 0 ) -- cgit v0.9.0.2