summaryrefslogtreecommitdiff
path: root/core/pim/osearch/doclnkitem.cpp
authortille <tille>2003-05-12 17:02:40 (UTC)
committer tille <tille>2003-05-12 17:02:40 (UTC)
commit21157bf1102d428cebc9d8c80eb5c15b0a311328 (patch) (unidiff)
tree554fdb58a7ee3bd8dceec050207bc1ea7fc8fe3a /core/pim/osearch/doclnkitem.cpp
parent8a87ca1f7de6a205b47986db8ad4a082f39b9c34 (diff)
downloadopie-21157bf1102d428cebc9d8c80eb5c15b0a311328.zip
opie-21157bf1102d428cebc9d8c80eb5c15b0a311328.tar.gz
opie-21157bf1102d428cebc9d8c80eb5c15b0a311328.tar.bz2
added support for advfm
Diffstat (limited to 'core/pim/osearch/doclnkitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/doclnkitem.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp
index 04d08ca..95402b9 100644
--- a/core/pim/osearch/doclnkitem.cpp
+++ b/core/pim/osearch/doclnkitem.cpp
@@ -35,6 +35,7 @@ QString DocLnkItem::toRichText()
35 text += "<b><h3>" + _doc->name() + "</b></h3><br>"; 35 text += "<b><h3>" + _doc->name() + "</b></h3><br>";
36 text += _doc->comment() + "<br>"; 36 text += _doc->comment() + "<br>";
37 text += "File: " + _doc->file() + "<br>"; 37 text += "File: " + _doc->file() + "<br>";
38 text += "Link: " + _doc->linkFile() + "<br>";
38 text += "Mimetype: " + _doc->type() + "<br>"; 39 text += "Mimetype: " + _doc->type() + "<br>";
39 if ( _doc->type().contains( "text" ) ){ 40 if ( _doc->type().contains( "text" ) ){
40 text += "<br><br><hr><br>"; 41 text += "<br><br><hr><br>";
@@ -63,12 +64,8 @@ void DocLnkItem::action( int act )
63 if (!_doc->isValid()) qDebug("INVALID"); 64 if (!_doc->isValid()) qDebug("INVALID");
64 if (act == 0) _doc->execute(); 65 if (act == 0) _doc->execute();
65 else if (act == 1){ 66 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)"); 67 QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
69 e << file.dirPath(); 68 e << _doc->file();
70 // QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)");
71 // e << _doc->file();
72 } 69 }
73} 70}
74 71