From 40eab6d033e060347c83adb707364933d2a77f30 Mon Sep 17 00:00:00 2001 From: coredump Date: Mon, 08 Dec 2003 16:27:39 +0000 Subject: Appearance fixed for osearch --- (limited to 'core/pim/osearch/applnksearch.cpp') 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 @@ #include "applnkitem.h" + AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name) { _apps = 0; - QIconSet is = Resource::loadIconSet( "osearch/applications" ); + QIconSet is = Resource::loadIconSet( "osearch/applicationsSmall" ); //QIconSet is = Resource::loadIconSet( "AppsIcon" ); - setPixmap( 0, is.pixmap( QIconSet::Small, true ) ); + setPixmap( 0, is.pixmap( QIconSet::Large, true ) ); } @@ -42,15 +43,16 @@ void AppLnkSearch::load() int AppLnkSearch::search() { QList appList = _apps->children(); + for ( AppLnk *app = appList.first(); app != 0; app = appList.next() ){ if ( (_search.match( app->name() ) != -1) || (_search.match(app->comment()) != -1) - || (_search.match(app->exec()) != -1) ) { + || (_search.match(app->exec()) != -1) ) { insertItem( app ); }else if (searchFile( app )) - insertItem( app ); - qApp->processEvents( 100 ); + insertItem( app ); + qApp->processEvents( 100 ); } return _resultCount; } -- cgit v0.9.0.2