Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 24 |
1 files changed, 10 insertions, 14 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 @@ -27,28 +27,24 @@ 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; } - |