author | tille <tille> | 2003-05-12 17:02:40 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-12 17:02:40 (UTC) |
commit | 21157bf1102d428cebc9d8c80eb5c15b0a311328 (patch) (unidiff) | |
tree | 554fdb58a7ee3bd8dceec050207bc1ea7fc8fe3a | |
parent | 8a87ca1f7de6a205b47986db8ad4a082f39b9c34 (diff) | |
download | opie-21157bf1102d428cebc9d8c80eb5c15b0a311328.zip opie-21157bf1102d428cebc9d8c80eb5c15b0a311328.tar.gz opie-21157bf1102d428cebc9d8c80eb5c15b0a311328.tar.bz2 |
added support for advfm
-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 8 | ||||
-rw-r--r-- | core/pim/osearch/doclnkitem.cpp | 7 |
2 files changed, 5 insertions, 10 deletions
diff --git a/core/pim/osearch/applnkitem.cpp b/core/pim/osearch/applnkitem.cpp index 1e7b1fb..0d04be6 100644 --- a/core/pim/osearch/applnkitem.cpp +++ b/core/pim/osearch/applnkitem.cpp | |||
@@ -36,4 +36,6 @@ QString AppLnkItem::toRichText() | |||
36 | text += _app->comment() + "<br>"; | 36 | text += _app->comment() + "<br>"; |
37 | text += "<br>`" + _app->exec() + "`<br>"; | 37 | text += "<br>`" + _app->exec() + "`<br>"; |
38 | text += "<br>`" + _app->file() + "`<br>"; | ||
39 | text += "<br>`" + _app->linkFile() + "`<br>"; | ||
38 | return text; | 40 | return text; |
39 | } | 41 | } |
@@ -44,10 +46,6 @@ void AppLnkItem::action( int act ) | |||
44 | if (act == 0) _app->execute(); | 46 | if (act == 0) _app->execute(); |
45 | else if (act == 1){ | 47 | 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)"); | 48 | QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); |
49 | e << file.dirPath(); | 49 | e << _app->linkFile(); |
50 | // QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); | ||
51 | // e << _app->file(); | ||
52 | } | 50 | } |
53 | } | 51 | } |
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 | |||
@@ -36,4 +36,5 @@ QString DocLnkItem::toRichText() | |||
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" ) ){ |
@@ -64,10 +65,6 @@ void DocLnkItem::action( int act ) | |||
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 | } |