Diffstat (limited to 'core/pim/osearch/doclnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/doclnkitem.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ #include <qtextstream.h> +#include <qfileinfo.h> +#include <qpe/qcopenvelope_qws.h> @@ -62,2 +64,10 @@ void DocLnkItem::action( int act ) if (act == 0) _doc->execute(); + else if (act == 1){ + QFileInfo file( _doc->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 << _doc->file(); + } } @@ -68,2 +78,3 @@ QIntDict<QString> DocLnkItem::actions() result.insert( 0, new QString( QObject::tr("open with ") + _doc->exec() ) ); + result.insert( 1, new QString( QObject::tr("open in filemanager") ) ); return result; |