Diffstat (limited to 'core/pim/osearch/adresssearch.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/adresssearch.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp index e1f575d..d260670 100644 --- a/core/pim/osearch/adresssearch.cpp +++ b/core/pim/osearch/adresssearch.cpp | |||
@@ -1,50 +1,49 @@ | |||
1 | // | 1 | // |
2 | // | 2 | // |
3 | // C++ Implementation: $MODULE$ | 3 | // C++ Implementation: $MODULE$ |
4 | // | 4 | // |
5 | // Description: | 5 | // Description: |
6 | // | 6 | // |
7 | // | 7 | // |
8 | // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 | 8 | // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 |
9 | // | 9 | // |
10 | // Copyright: See COPYING file that comes with this distribution | 10 | // Copyright: See COPYING file that comes with this distribution |
11 | // | 11 | // |
12 | // | 12 | // |
13 | #include "adresssearch.h" | 13 | #include "adresssearch.h" |
14 | #include "contactitem.h" | 14 | #include "contactitem.h" |
15 | 15 | ||
16 | #include <qpe/resource.h> | 16 | #include <opie2/oresource.h> |
17 | 17 | ||
18 | //#include <qwhatsthis.h> | 18 | //#include <qwhatsthis.h> |
19 | 19 | ||
20 | using namespace Opie; | 20 | using namespace Opie; |
21 | AdressSearch::AdressSearch(QListView* parent, QString name): | 21 | AdressSearch::AdressSearch(QListView* parent, QString name): |
22 | SearchGroup(parent, name) | 22 | SearchGroup(parent, name) |
23 | { | 23 | { |
24 | _contacts = 0; | 24 | _contacts = 0; |
25 | QIconSet is = Resource::loadIconSet( "addressbook/AddressBook" ); | 25 | setPixmap( 0, Opie::Core::OResource::loadPixmap( "addressbook/AddressBook", Opie::Core::OResource::SmallIcon ) ); |
26 | setPixmap( 0, is.pixmap( QIconSet::Large, true ) ); | ||
27 | 26 | ||
28 | 27 | ||
29 | //QWhatsThis::add( this, QObject::tr("Search the addressbook") ); | 28 | //QWhatsThis::add( this, QObject::tr("Search the addressbook") ); |
30 | /*QPixmap pix = Resource::loadPixmap( "addressbook/AddressBook" ); | 29 | /*QPixmap pix = Resource::loadPixmap( "addressbook/AddressBook" ); |
31 | QImage img = pix.convertToImage(); | 30 | QImage img = pix.convertToImage(); |
32 | img.smoothScale( 14, 14 ); | 31 | img.smoothScale( 14, 14 ); |
33 | pix.convertFromImage( img ); | 32 | pix.convertFromImage( img ); |
34 | setPixmap( 0, pix );*/ | 33 | setPixmap( 0, pix );*/ |
35 | } | 34 | } |
36 | 35 | ||
37 | 36 | ||
38 | AdressSearch::~AdressSearch() | 37 | AdressSearch::~AdressSearch() |
39 | { | 38 | { |
40 | delete _contacts; | 39 | delete _contacts; |
41 | } | 40 | } |
42 | 41 | ||
43 | void AdressSearch::load() | 42 | void AdressSearch::load() |
44 | { | 43 | { |
45 | _contacts = new OPimContactAccess("osearch"); | 44 | _contacts = new OPimContactAccess("osearch"); |
46 | } | 45 | } |
47 | 46 | ||
48 | int AdressSearch::search() | 47 | int AdressSearch::search() |
49 | { | 48 | { |
50 | OPimRecordList<OPimContact> results = _contacts->matchRegexp(_search); | 49 | OPimRecordList<OPimContact> results = _contacts->matchRegexp(_search); |