Diffstat (limited to 'core/pim/osearch/contactitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/contactitem.cpp | 25 |
1 files changed, 15 insertions, 10 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 | |||
@@ -4,3 +4,3 @@ | |||
4 | // | 4 | // |
5 | // Description: | 5 | // Description: |
6 | // | 6 | // |
@@ -36,16 +36,21 @@ QString ContactItem::toRichText() | |||
36 | 36 | ||
37 | 37 | void ContactItem::action( int act ) | |
38 | void ContactItem::editItem() | ||
39 | { | 38 | { |
40 | QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); | 39 | if (act == 0){ |
41 | //QCopEnvelope e("QPE/Addressbook", "edit(int)"); | 40 | QCopEnvelope e("QPE/Application/addressbook", "show(int)"); |
42 | e << _contact->uid(); | 41 | e << _contact->uid(); |
42 | }else if(act == 1){ | ||
43 | QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); | ||
44 | e << _contact->uid(); | ||
43 | } | 45 | } |
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 | } | ||