Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 11 |
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 | |||
@@ -13,6 +13,8 @@ | |||
13 | #include "applnkitem.h" | 13 | #include "applnkitem.h" |
14 | 14 | ||
15 | #include <qpe/applnk.h> | 15 | #include <qpe/applnk.h> |
16 | #include <qfileinfo.h> | ||
17 | #include <qpe/qcopenvelope_qws.h> | ||
16 | 18 | ||
17 | AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) | 19 | AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) |
18 | : ResultItem(parent) | 20 | : ResultItem(parent) |
@@ -40,11 +42,20 @@ void AppLnkItem::action( int act ) | |||
40 | { | 42 | { |
41 | if (!_app->isValid()) qDebug("INVALID"); | 43 | if (!_app->isValid()) qDebug("INVALID"); |
42 | if (act == 0) _app->execute(); | 44 | if (act == 0) _app->execute(); |
45 | else if (act == 1){ | ||
46 | QFileInfo file( _app->file() ); | ||
47 | qDebug("opening %s in filemanager", file.dirPath().latin1()); | ||
48 | QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); | ||
49 | e << file.dirPath(); | ||
50 | // QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); | ||
51 | // e << _app->file(); | ||
52 | } | ||
43 | } | 53 | } |
44 | 54 | ||
45 | QIntDict<QString> AppLnkItem::actions() | 55 | QIntDict<QString> AppLnkItem::actions() |
46 | { | 56 | { |
47 | QIntDict<QString> result; | 57 | QIntDict<QString> result; |
48 | result.insert( 0, new QString( QObject::tr("execute") ) ); | 58 | result.insert( 0, new QString( QObject::tr("execute") ) ); |
59 | result.insert( 1, new QString( QObject::tr("open in filemanager") ) ); | ||
49 | return result; | 60 | return result; |
50 | } | 61 | } |