Diffstat (limited to 'core/pim/osearch/applnkitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/applnkitem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/osearch/applnkitem.cpp b/core/pim/osearch/applnkitem.cpp index 19e765e..ca54eef 100644 --- a/core/pim/osearch/applnkitem.cpp +++ b/core/pim/osearch/applnkitem.cpp | |||
@@ -9,16 +9,17 @@ | |||
9 | // | 9 | // |
10 | // Copyright: See COPYING file that comes with this distribution | 10 | // Copyright: See COPYING file that comes with this distribution |
11 | // | 11 | // |
12 | // | 12 | // |
13 | #include "applnkitem.h" | 13 | #include "applnkitem.h" |
14 | 14 | ||
15 | #include <opie2/odebug.h> | ||
16 | |||
15 | #include <qpe/applnk.h> | 17 | #include <qpe/applnk.h> |
16 | #include <qpe/qcopenvelope_qws.h> | 18 | #include <qpe/qcopenvelope_qws.h> |
17 | 19 | ||
18 | |||
19 | AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) | 20 | AppLnkItem::AppLnkItem(OListViewItem* parent, AppLnk *app) |
20 | : ResultItem(parent) | 21 | : ResultItem(parent) |
21 | { | 22 | { |
22 | _app = app; | 23 | _app = app; |
23 | setText(0, _app->name() ); | 24 | setText(0, _app->name() ); |
24 | setPixmap(0, _app->pixmap() ); | 25 | setPixmap(0, _app->pixmap() ); |
@@ -40,13 +41,13 @@ QString AppLnkItem::toRichText() | |||
40 | text += "<br>`" + _app->linkFile() + "`<br>"; | 41 | text += "<br>`" + _app->linkFile() + "`<br>"; |
41 | return text; | 42 | return text; |
42 | } | 43 | } |
43 | 44 | ||
44 | void AppLnkItem::action( int act ) | 45 | void AppLnkItem::action( int act ) |
45 | { | 46 | { |
46 | if (!_app->isValid()) qDebug("INVALID"); | 47 | if (!_app->isValid()) Opie::Core::odebug << "INVALID" << oendl; |
47 | if (act == 0) _app->execute(); | 48 | if (act == 0) _app->execute(); |
48 | else if (act == 1){ | 49 | else if (act == 1){ |
49 | QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); | 50 | QCopEnvelope e("QPE/Application/advancedfm", "setDocument(QString)"); |
50 | e << _app->linkFile(); | 51 | e << _app->linkFile(); |
51 | } | 52 | } |
52 | } | 53 | } |