author | tille <tille> | 2003-05-11 19:19:30 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-11 19:19:30 (UTC) |
commit | 43c18630840a98aed8deb96b454957c40f0a4344 (patch) (unidiff) | |
tree | 60e5b68d1d172c77560d5af7bea83e81be7144a6 /core/pim/osearch/applnkitem.cpp | |
parent | 38dc2fd6258f11ba0507c7bd8f8dfd5b39bc0df5 (diff) | |
download | opie-43c18630840a98aed8deb96b454957c40f0a4344.zip opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.gz opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.bz2 |
improved applnk and doclnk searching
clean up:
- mainwindow: handling of searchgroups
- searchgroups: introduced load, search and insertItem functions
- flexible actions handling
- doclnksearch inherits applnksearch
Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/core/pim/osearch/applnkitem.cpp b/core/pim/osearch/applnkitem.cpp index f45ed68..2152da4 100644 --- a/core/pim/osearch/applnkitem.cpp +++ b/core/pim/osearch/applnkitem.cpp | |||
@@ -4,3 +4,3 @@ | |||
4 | // | 4 | // |
5 | // Description: | 5 | // Description: |
6 | // | 6 | // |
@@ -32,9 +32,5 @@ QString AppLnkItem::toRichText() | |||
32 | QString text; | 32 | QString text; |
33 | text += "<b><h3>"; | 33 | text += "<b><h3>" + _app->name() + "</b></h3><br>"; |
34 | text += _app->name(); | 34 | text += _app->comment() + "<br>"; |
35 | text += "</b></h3><br>"; | 35 | text += "<br>`" + _app->exec() + "`<br>"; |
36 | text += _app->comment(); | ||
37 | text += "<br><br>`"; | ||
38 | text += _app->exec(); | ||
39 | text += "`"; | ||
40 | return text; | 36 | return text; |
@@ -42,13 +38,13 @@ QString AppLnkItem::toRichText() | |||
42 | 38 | ||
43 | void AppLnkItem::editItem() | 39 | void AppLnkItem::action( int act ) |
44 | { | 40 | { |
45 | _app->execute(); | 41 | if (!_app->isValid()) qDebug("INVALID"); |
42 | if (act == 0) _app->execute(); | ||
46 | } | 43 | } |
47 | 44 | ||
48 | void AppLnkItem::showItem() | 45 | QIntDict<QString> AppLnkItem::actions() |
49 | { | 46 | { |
50 | /* QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); | 47 | QIntDict<QString> result; |
51 | e << _contact->uid();*/ | 48 | result.insert( 0, new QString( QObject::tr("execute") ) ); |
52 | ResultItem::showItem(); | 49 | return result; |
53 | } | 50 | } |
54 | |||