Diffstat (limited to 'core/pim/osearch/contactitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp index 788a415..7d8ecf1 100644 --- a/core/pim/osearch/contactitem.cpp +++ b/core/pim/osearch/contactitem.cpp | |||
@@ -36,7 +36,9 @@ QString ContactItem::toRichText() | |||
36 | 36 | ||
37 | 37 | void ContactItem::action( int act ) | |
38 | void ContactItem::editItem() | ||
39 | { | 38 | { |
39 | if (act == 0){ | ||
40 | QCopEnvelope e("QPE/Application/addressbook", "show(int)"); | ||
41 | e << _contact->uid(); | ||
42 | }else if(act == 1){ | ||
40 | QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); | 43 | QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); |
41 | //QCopEnvelope e("QPE/Addressbook", "edit(int)"); | ||
42 | e << _contact->uid(); | 44 | e << _contact->uid(); |
@@ -44,8 +46,11 @@ void ContactItem::editItem() | |||
44 | 46 | ||
45 | void ContactItem::showItem() | ||
46 | { | ||
47 | QCopEnvelope e("QPE/Application/addressbook", "show(int)"); | ||
48 | //QCopEnvelope e("QPE/Addressbook", "show(int)"); | ||
49 | e << _contact->uid(); | ||
50 | } | 47 | } |
51 | 48 | ||
49 | QIntDict<QString> ContactItem::actions() | ||
50 | { | ||
51 | QIntDict<QString> result; | ||
52 | result.insert( 0, new QString( QObject::tr("show") ) ); | ||
53 | result.insert( 1, new QString( QObject::tr("edit") ) ); | ||
54 | return result; | ||
55 | |||
56 | } | ||