summaryrefslogtreecommitdiff
path: root/core/pim/todo/todotable.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/todotable.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/todotable.cpp17
1 files changed, 10 insertions, 7 deletions
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
@@ -306,9 +306,6 @@ 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();
// Show detailed view of the selected entry
{
menuTimer->stop();
@@ -319,7 +316,7 @@ void TodoTable::slotClicked( int row, int col, int, const QPoint &pos )
case 3:
// may as well edit it...
menuTimer->stop();
- // emit signalEdit();
+ emit signalEdit();
break;
}
}
@@ -670,15 +667,21 @@ 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()
{