summaryrefslogtreecommitdiff
path: root/core/pim/osearch/applnksearch.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/applnksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/applnksearch.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/pim/osearch/applnksearch.cpp b/core/pim/osearch/applnksearch.cpp
index b15275a..e8170c5 100644
--- a/core/pim/osearch/applnksearch.cpp
+++ b/core/pim/osearch/applnksearch.cpp
@@ -19,12 +19,13 @@
19 19
20#include "applnkitem.h" 20#include "applnkitem.h"
21 21
22
22AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name) 23AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name)
23{ 24{
24 _apps = 0; 25 _apps = 0;
25 QIconSet is = Resource::loadIconSet( "osearch/applications" ); 26 QIconSet is = Resource::loadIconSet( "osearch/applicationsSmall" );
26 //QIconSet is = Resource::loadIconSet( "AppsIcon" ); 27 //QIconSet is = Resource::loadIconSet( "AppsIcon" );
27 setPixmap( 0, is.pixmap( QIconSet::Small, true ) ); 28 setPixmap( 0, is.pixmap( QIconSet::Large, true ) );
28} 29}
29 30
30 31
@@ -42,15 +43,16 @@ void AppLnkSearch::load()
42int AppLnkSearch::search() 43int AppLnkSearch::search()
43{ 44{
44 QList<AppLnk> appList = _apps->children(); 45 QList<AppLnk> appList = _apps->children();
46
45 for ( AppLnk *app = appList.first(); app != 0; app = appList.next() ){ 47 for ( AppLnk *app = appList.first(); app != 0; app = appList.next() ){
46 if ( (_search.match( app->name() ) != -1) 48 if ( (_search.match( app->name() ) != -1)
47 || (_search.match(app->comment()) != -1) 49 || (_search.match(app->comment()) != -1)
48 || (_search.match(app->exec()) != -1) ) { 50 || (_search.match(app->exec()) != -1) ) {
49 insertItem( app ); 51 insertItem( app );
50 }else 52 }else
51 if (searchFile( app )) 53 if (searchFile( app ))
52 insertItem( app ); 54 insertItem( app );
53 qApp->processEvents( 100 ); 55 qApp->processEvents( 100 );
54 } 56 }
55 return _resultCount; 57 return _resultCount;
56} 58}