author | tille <tille> | 2003-05-13 13:46:19 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-13 13:46:19 (UTC) |
commit | ba4bb8e673fba43ae7a232942dea14d166991530 (patch) (side-by-side diff) | |
tree | e775ad637d5256eb1412e576c1bd5e77ed50406d /core/pim/osearch/applnksearch.cpp | |
parent | 1461a41433a732e3a615508e5de23f8acd91de6a (diff) | |
download | opie-ba4bb8e673fba43ae7a232942dea14d166991530.zip opie-ba4bb8e673fba43ae7a232942dea14d166991530.tar.gz opie-ba4bb8e673fba43ae7a232942dea14d166991530.tar.bz2 |
icons ;)
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 @@ // // #include "applnksearch.h" #include <qpe/applnk.h> #include <qpe/qpeapplication.h> +#include <qiconset.h> +#include <qpe/resource.h> #include "applnkitem.h" AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name) { _apps = 0; + QIconSet is = Resource::loadIconSet( "osearch/applications" ); + //QIconSet is = Resource::loadIconSet( "AppsIcon" ); + setPixmap( 0, is.pixmap( QIconSet::Small, true ) ); } AppLnkSearch::~AppLnkSearch() { delete _apps; @@ -42,22 +47,22 @@ int AppLnkSearch::search() if ( (_search.match( app->name() ) != -1) || (_search.match(app->comment()) != -1) || (_search.match(app->exec()) != -1) ) { count++; insertItem( app ); } + qApp->processEvents( 100 ); } return count; } void AppLnkSearch::insertItem( void *rec ) { new AppLnkItem( this, (AppLnk*)rec ); } void AppLnkSearch::setSearch(QRegExp re) { - expanded = false; setOpen( false ); SearchGroup::setSearch( re ); } |