summaryrefslogtreecommitdiff
path: root/core/pim/osearch/todoitem.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/osearch/todoitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/todoitem.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/core/pim/osearch/todoitem.cpp b/core/pim/osearch/todoitem.cpp
index 422a6d8..4ea4586 100644
--- a/core/pim/osearch/todoitem.cpp
+++ b/core/pim/osearch/todoitem.cpp
@@ -10,18 +10,19 @@
// Copyright: See COPYING file that comes with this distribution
//
//
#include "todoitem.h"
#include <opie/otodo.h>
+#include <qpe/qcopenvelope_qws.h>
TodoItem::TodoItem(OListViewItem* parent, OTodo *todo)
: ResultItem(parent)
{
_todo = todo;
- setText( 0, todo->summary() );
+ setText( 0, todo->toShortText() );
}
TodoItem::~TodoItem()
{
delete _todo;
@@ -35,6 +36,19 @@ void TodoItem::expand()
QString TodoItem::toRichText()
{
return _todo->toRichText();
}
+void TodoItem::showItem()
+{
+// QCopEnvelope e("QPE/Todolist", "show(int)");
+ qDebug("calling todolist for %i",_todo->uid());
+ QCopEnvelope e("QPE/Todolist", "show(int)");
+ e << _todo->uid();
+}
+
+void TodoItem::editItem()
+{
+ QCopEnvelope e("QPE/Todolist", "edit(int)");
+ e << _todo->uid();
+}