author | coredump <coredump> | 2003-12-08 16:27:39 (UTC) |
---|---|---|
committer | coredump <coredump> | 2003-12-08 16:27:39 (UTC) |
commit | 40eab6d033e060347c83adb707364933d2a77f30 (patch) (unidiff) | |
tree | d4c59e570257444a3b76b0fabb46184e0e7cecaa /core/pim/osearch/applnksearch.cpp | |
parent | 466d396717be9ec10bdc1472bce5e733cd268ce4 (diff) | |
download | opie-40eab6d033e060347c83adb707364933d2a77f30.zip opie-40eab6d033e060347c83adb707364933d2a77f30.tar.gz opie-40eab6d033e060347c83adb707364933d2a77f30.tar.bz2 |
Appearance fixed for osearch
Diffstat (limited to 'core/pim/osearch/applnksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/applnksearch.cpp | 12 |
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 | |||
22 | AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name) | 23 | AppLnkSearch::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() | |||
42 | int AppLnkSearch::search() | 43 | int 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 | } |