From 43c18630840a98aed8deb96b454957c40f0a4344 Mon Sep 17 00:00:00 2001 From: tille Date: Sun, 11 May 2003 19:19:30 +0000 Subject: improved applnk and doclnk searching clean up: - mainwindow: handling of searchgroups - searchgroups: introduced load, search and insertItem functions - flexible actions handling - doclnksearch inherits applnksearch --- (limited to 'core/pim/osearch/applnkitem.cpp') 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 @@ -2,7 +2,7 @@ // // C++ Implementation: $MODULE$ // -// Description: +// Description: // // // Author: Patrick S. Vogt , (C) 2003 @@ -30,25 +30,21 @@ AppLnkItem::~AppLnkItem() QString AppLnkItem::toRichText() { QString text; - text += "

"; - text += _app->name(); - text += "


"; - text += _app->comment(); - text += "

`"; - text += _app->exec(); - text += "`"; + text += "

" + _app->name() + "


"; + text += _app->comment() + "
"; + text += "
`" + _app->exec() + "`
"; 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 AppLnkItem::actions() { -/* QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); - e << _contact->uid();*/ - ResultItem::showItem(); + QIntDict result; + result.insert( 0, new QString( QObject::tr("execute") ) ); + return result; } - -- cgit v0.9.0.2