summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/applnkitem.cpp11
-rw-r--r--core/pim/osearch/doclnkitem.cpp11
2 files changed, 22 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
@@ -14,4 +14,6 @@
14 14
15#include <qpe/applnk.h> 15#include <qpe/applnk.h>
16#include <qfileinfo.h>
17#include <qpe/qcopenvelope_qws.h>
16 18
17AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) 19AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app)
@@ -41,4 +43,12 @@ void AppLnkItem::action( int act )
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
@@ -47,4 +57,5 @@ QIntDict<QString> AppLnkItem::actions()
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}
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp
index 75dee58..04d08ca 100644
--- a/core/pim/osearch/doclnkitem.cpp
+++ b/core/pim/osearch/doclnkitem.cpp
@@ -16,4 +16,6 @@
16#include <qfile.h> 16#include <qfile.h>
17#include <qtextstream.h> 17#include <qtextstream.h>
18#include <qfileinfo.h>
19#include <qpe/qcopenvelope_qws.h>
18 20
19DocLnkItem::DocLnkItem(OListViewItem* parent, DocLnk *app) 21DocLnkItem::DocLnkItem(OListViewItem* parent, DocLnk *app)
@@ -61,4 +63,12 @@ void DocLnkItem::action( int act )
61 if (!_doc->isValid()) qDebug("INVALID"); 63 if (!_doc->isValid()) qDebug("INVALID");
62 if (act == 0) _doc->execute(); 64 if (act == 0) _doc->execute();
65 else if (act == 1){
66 QFileInfo file( _doc->file() );
67 qDebug("opening %s in filemanager", file.dirPath().latin1());
68 QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
69 e << file.dirPath();
70 // QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
71 // e << _doc->file();
72 }
63} 73}
64 74
@@ -67,4 +77,5 @@ QIntDict<QString> DocLnkItem::actions()
67 QIntDict<QString> result; 77 QIntDict<QString> result;
68 result.insert( 0, new QString( QObject::tr("open with ") + _doc->exec() ) ); 78 result.insert( 0, new QString( QObject::tr("open with ") + _doc->exec() ) );
79 result.insert( 1, new QString( QObject::tr("open in filemanager") ) );
69 return result; 80 return result;
70} 81}