From ca02db5ebfc5e44c3b216c12757683bac246ba23 Mon Sep 17 00:00:00 2001 From: tille Date: Mon, 12 May 2003 14:31:12 +0000 Subject: add open in filemanager --- (limited to 'core/pim/osearch/applnkitem.cpp') diff --git a/core/pim/osearch/applnkitem.cpp b/core/pim/osearch/applnkitem.cpp index 2152da4..1e7b1fb 100644 --- a/core/pim/osearch/applnkitem.cpp +++ b/core/pim/osearch/applnkitem.cpp @@ -13,6 +13,8 @@ #include "applnkitem.h" #include +#include +#include AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) : ResultItem(parent) @@ -40,11 +42,20 @@ void AppLnkItem::action( int act ) { if (!_app->isValid()) qDebug("INVALID"); if (act == 0) _app->execute(); + else if (act == 1){ + QFileInfo file( _app->file() ); + qDebug("opening %s in filemanager", file.dirPath().latin1()); + QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); + e << file.dirPath(); +// QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); + // e << _app->file(); + } } QIntDict AppLnkItem::actions() { QIntDict result; result.insert( 0, new QString( QObject::tr("execute") ) ); + result.insert( 1, new QString( QObject::tr("open in filemanager") ) ); return result; } -- cgit v0.9.0.2