author | tille <tille> | 2003-05-08 12:16:38 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-08 12:16:38 (UTC) |
commit | 763d7d7da84682fb87a631a997e93c08f5abde61 (patch) (side-by-side diff) | |
tree | 9cfeb731b793e3634fa751a6b6ffce63609f24a2 /core/pim/osearch/todoitem.cpp | |
parent | 9e08dd00a96ffb4141da9f4ce2df0b871b334691 (diff) | |
download | opie-763d7d7da84682fb87a631a997e93c08f5abde61.zip opie-763d7d7da84682fb87a631a997e93c08f5abde61.tar.gz opie-763d7d7da84682fb87a631a997e93c08f5abde61.tar.bz2 |
this needs the new libopie patch...
Diffstat (limited to 'core/pim/osearch/todoitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/todoitem.cpp | 16 |
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 @@ -4,37 +4,51 @@ // // Description: // // // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 // // 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; } void TodoItem::expand() { ResultItem::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(); +} |