-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 | |||
@@ -10,18 +10,19 @@ | |||
10 | // Copyright: See COPYING file that comes with this distribution | 10 | // Copyright: See COPYING file that comes with this distribution |
11 | // | 11 | // |
12 | // | 12 | // |
13 | #include "todoitem.h" | 13 | #include "todoitem.h" |
14 | 14 | ||
15 | #include <opie/otodo.h> | 15 | #include <opie/otodo.h> |
16 | #include <qpe/qcopenvelope_qws.h> | ||
16 | 17 | ||
17 | TodoItem::TodoItem(OListViewItem* parent, OTodo *todo) | 18 | TodoItem::TodoItem(OListViewItem* parent, OTodo *todo) |
18 | : ResultItem(parent) | 19 | : ResultItem(parent) |
19 | { | 20 | { |
20 | _todo = todo; | 21 | _todo = todo; |
21 | setText( 0, todo->summary() ); | 22 | setText( 0, todo->toShortText() ); |
22 | } | 23 | } |
23 | 24 | ||
24 | 25 | ||
25 | TodoItem::~TodoItem() | 26 | TodoItem::~TodoItem() |
26 | { | 27 | { |
27 | delete _todo; | 28 | delete _todo; |
@@ -35,6 +36,19 @@ void TodoItem::expand() | |||
35 | 36 | ||
36 | QString TodoItem::toRichText() | 37 | QString TodoItem::toRichText() |
37 | { | 38 | { |
38 | return _todo->toRichText(); | 39 | return _todo->toRichText(); |
39 | } | 40 | } |
40 | 41 | ||
42 | void TodoItem::showItem() | ||
43 | { | ||
44 | //QCopEnvelope e("QPE/Todolist", "show(int)"); | ||
45 | qDebug("calling todolist for %i",_todo->uid()); | ||
46 | QCopEnvelope e("QPE/Todolist", "show(int)"); | ||
47 | e << _todo->uid(); | ||
48 | } | ||
49 | |||
50 | void TodoItem::editItem() | ||
51 | { | ||
52 | QCopEnvelope e("QPE/Todolist", "edit(int)"); | ||
53 | e << _todo->uid(); | ||
54 | } | ||