summaryrefslogtreecommitdiff
path: root/core/pim/osearch/applnkitem.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/applnkitem.cpp11
1 files changed, 11 insertions, 0 deletions
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
@@ -15,2 +15,4 @@
#include <qpe/applnk.h>
+#include <qfileinfo.h>
+#include <qpe/qcopenvelope_qws.h>
@@ -42,2 +44,10 @@ void AppLnkItem::action( int act )
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();
+ }
}
@@ -48,2 +58,3 @@ QIntDict<QString> AppLnkItem::actions()
result.insert( 0, new QString( QObject::tr("execute") ) );
+ result.insert( 1, new QString( QObject::tr("open in filemanager") ) );
return result;