Diffstat (limited to 'core/pim/osearch/applnksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/applnksearch.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/pim/osearch/applnksearch.cpp b/core/pim/osearch/applnksearch.cpp index acf650a..d5b181b 100644 --- a/core/pim/osearch/applnksearch.cpp +++ b/core/pim/osearch/applnksearch.cpp | |||
@@ -11,18 +11,23 @@ | |||
11 | // | 11 | // |
12 | // | 12 | // |
13 | #include "applnksearch.h" | 13 | #include "applnksearch.h" |
14 | 14 | ||
15 | #include <qpe/applnk.h> | 15 | #include <qpe/applnk.h> |
16 | #include <qpe/qpeapplication.h> | 16 | #include <qpe/qpeapplication.h> |
17 | #include <qiconset.h> | ||
18 | #include <qpe/resource.h> | ||
17 | 19 | ||
18 | #include "applnkitem.h" | 20 | #include "applnkitem.h" |
19 | 21 | ||
20 | AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name) | 22 | AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name) |
21 | { | 23 | { |
22 | _apps = 0; | 24 | _apps = 0; |
25 | QIconSet is = Resource::loadIconSet( "osearch/applications" ); | ||
26 | //QIconSet is = Resource::loadIconSet( "AppsIcon" ); | ||
27 | setPixmap( 0, is.pixmap( QIconSet::Small, true ) ); | ||
23 | } | 28 | } |
24 | 29 | ||
25 | 30 | ||
26 | AppLnkSearch::~AppLnkSearch() | 31 | AppLnkSearch::~AppLnkSearch() |
27 | { | 32 | { |
28 | delete _apps; | 33 | delete _apps; |
@@ -42,22 +47,22 @@ int AppLnkSearch::search() | |||
42 | if ( (_search.match( app->name() ) != -1) | 47 | if ( (_search.match( app->name() ) != -1) |
43 | || (_search.match(app->comment()) != -1) | 48 | || (_search.match(app->comment()) != -1) |
44 | || (_search.match(app->exec()) != -1) ) { | 49 | || (_search.match(app->exec()) != -1) ) { |
45 | count++; | 50 | count++; |
46 | insertItem( app ); | 51 | insertItem( app ); |
47 | } | 52 | } |
53 | qApp->processEvents( 100 ); | ||
48 | } | 54 | } |
49 | return count; | 55 | return count; |
50 | } | 56 | } |
51 | 57 | ||
52 | void AppLnkSearch::insertItem( void *rec ) | 58 | void AppLnkSearch::insertItem( void *rec ) |
53 | { | 59 | { |
54 | new AppLnkItem( this, (AppLnk*)rec ); | 60 | new AppLnkItem( this, (AppLnk*)rec ); |
55 | } | 61 | } |
56 | 62 | ||
57 | void AppLnkSearch::setSearch(QRegExp re) | 63 | void AppLnkSearch::setSearch(QRegExp re) |
58 | { | 64 | { |
59 | expanded = false; | ||
60 | setOpen( false ); | 65 | setOpen( false ); |
61 | SearchGroup::setSearch( re ); | 66 | SearchGroup::setSearch( re ); |
62 | } | 67 | } |
63 | 68 | ||