summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/osearch/todoitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/osearch/todoitem.cpp b/core/pim/osearch/todoitem.cpp
index be780a1..34e790a 100644
--- a/core/pim/osearch/todoitem.cpp
+++ b/core/pim/osearch/todoitem.cpp
@@ -1,44 +1,45 @@
1// 1//
2// 2//
3// C++ Implementation: $MODULE$ 3// C++ Implementation: $MODULE$
4// 4//
5// Description: 5// Description:
6// 6//
7// 7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
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 15
16#include <qpe/resource.h> 16#include <qpe/resource.h>
17#include <qpe/qcopenvelope_qws.h> 17#include <qpe/qcopenvelope_qws.h>
18 18
19 19
20 20
21using namespace Opie;
21TodoItem::TodoItem(OListViewItem* parent, OPimTodo *todo) 22TodoItem::TodoItem(OListViewItem* parent, OPimTodo *todo)
22: ResultItem(parent) 23: ResultItem(parent)
23{ 24{
24 _todo = todo; 25 _todo = todo;
25 setText( 0, todo->toShortText() ); 26 setText( 0, todo->toShortText() );
26 setIcon(); 27 setIcon();
27} 28}
28 29
29TodoItem::~TodoItem() 30TodoItem::~TodoItem()
30{ 31{
31 delete _todo; 32 delete _todo;
32} 33}
33 34
34QString TodoItem::toRichText() 35QString TodoItem::toRichText()
35{ 36{
36 return _todo->toRichText(); 37 return _todo->toRichText();
37} 38}
38 39
39void TodoItem::action( int act ) 40void TodoItem::action( int act )
40{ 41{
41 if (act == 0){ 42 if (act == 0){
42 QCopEnvelope e("QPE/Application/todolist", "show(int)"); 43 QCopEnvelope e("QPE/Application/todolist", "show(int)");
43 e << _todo->uid(); 44 e << _todo->uid();
44 }else if (act == 1){ 45 }else if (act == 1){