author | tille <tille> | 2003-05-11 19:19:30 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-11 19:19:30 (UTC) |
commit | 43c18630840a98aed8deb96b454957c40f0a4344 (patch) (side-by-side diff) | |
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 @@ -1,17 +1,17 @@ // // // C++ Implementation: $MODULE$ // -// Description: +// Description: // // // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 // // Copyright: See COPYING file that comes with this distribution // // #include "applnkitem.h" #include <qpe/applnk.h> AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) @@ -21,34 +21,30 @@ AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) setText(0, _app->name() ); } AppLnkItem::~AppLnkItem() { } QString AppLnkItem::toRichText() { QString text; - text += "<b><h3>"; - text += _app->name(); - text += "</b></h3><br>"; - text += _app->comment(); - text += "<br><br>`"; - text += _app->exec(); - text += "`"; + text += "<b><h3>" + _app->name() + "</b></h3><br>"; + text += _app->comment() + "<br>"; + text += "<br>`" + _app->exec() + "`<br>"; return text; } -void AppLnkItem::editItem() +void AppLnkItem::action( int act ) { - _app->execute(); + if (!_app->isValid()) qDebug("INVALID"); + if (act == 0) _app->execute(); } -void AppLnkItem::showItem() +QIntDict<QString> AppLnkItem::actions() { -/* QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); - e << _contact->uid();*/ - ResultItem::showItem(); + QIntDict<QString> result; + result.insert( 0, new QString( QObject::tr("execute") ) ); + return result; } - |