-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 11 | ||||
-rw-r--r-- | core/pim/osearch/doclnkitem.cpp | 11 |
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 | |||
@@ -15,2 +15,4 @@ | |||
15 | #include <qpe/applnk.h> | 15 | #include <qpe/applnk.h> |
16 | #include <qfileinfo.h> | ||
17 | #include <qpe/qcopenvelope_qws.h> | ||
16 | 18 | ||
@@ -42,2 +44,10 @@ void AppLnkItem::action( int act ) | |||
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 | } |
@@ -48,2 +58,3 @@ QIntDict<QString> AppLnkItem::actions() | |||
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; |
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 | |||
@@ -17,2 +17,4 @@ | |||
17 | #include <qtextstream.h> | 17 | #include <qtextstream.h> |
18 | #include <qfileinfo.h> | ||
19 | #include <qpe/qcopenvelope_qws.h> | ||
18 | 20 | ||
@@ -62,2 +64,10 @@ void DocLnkItem::action( int act ) | |||
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 | } |
@@ -68,2 +78,3 @@ QIntDict<QString> DocLnkItem::actions() | |||
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; |