summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/applnksearch.cpp8
-rw-r--r--core/pim/osearch/applnksearch.h2
-rw-r--r--core/pim/osearch/searchgroup.h1
3 files changed, 9 insertions, 2 deletions
diff --git a/core/pim/osearch/applnksearch.cpp b/core/pim/osearch/applnksearch.cpp
index d5b2930..acf650a 100644
--- a/core/pim/osearch/applnksearch.cpp
+++ b/core/pim/osearch/applnksearch.cpp
@@ -48,8 +48,16 @@ int AppLnkSearch::search()
48 } 48 }
49 return count; 49 return count;
50} 50}
51 51
52void AppLnkSearch::insertItem( void *rec ) 52void AppLnkSearch::insertItem( void *rec )
53{ 53{
54 new AppLnkItem( this, (AppLnk*)rec ); 54 new AppLnkItem( this, (AppLnk*)rec );
55} 55}
56
57void AppLnkSearch::setSearch(QRegExp re)
58{
59 expanded = false;
60 setOpen( false );
61 SearchGroup::setSearch( re );
62}
63
diff --git a/core/pim/osearch/applnksearch.h b/core/pim/osearch/applnksearch.h
index d88a8ce..6bb7486 100644
--- a/core/pim/osearch/applnksearch.h
+++ b/core/pim/osearch/applnksearch.h
@@ -22,17 +22,17 @@ class AppLnkSet;
22*/ 22*/
23class AppLnkSearch : public SearchGroup 23class AppLnkSearch : public SearchGroup
24{ 24{
25public: 25public:
26 AppLnkSearch(QListView* parent, QString name); 26 AppLnkSearch(QListView* parent, QString name);
27 27
28 ~AppLnkSearch(); 28 ~AppLnkSearch();
29 29
30protected: 30 virtual void setSearch(QRegExp);
31 virtual void load(); 31 virtual void load();
32 virtual int search(); 32 virtual int search();
33 virtual void insertItem( void* ); 33 virtual void insertItem( void* );
34 34
35 AppLnkSet *_apps; 35 AppLnkSet *_apps;
36}; 36};
37 37
38#endif 38#endif
diff --git a/core/pim/osearch/searchgroup.h b/core/pim/osearch/searchgroup.h
index ebe1193..35949f0 100644
--- a/core/pim/osearch/searchgroup.h
+++ b/core/pim/osearch/searchgroup.h
@@ -34,16 +34,15 @@ public:
34 34
35 35
36 36
37protected: 37protected:
38 QRegExp _search; 38 QRegExp _search;
39 virtual void load() = 0; 39 virtual void load() = 0;
40 virtual int search() = 0; 40 virtual int search() = 0;
41 virtual void insertItem( void* ) = 0; 41 virtual void insertItem( void* ) = 0;
42private:
43 void clearList(); 42 void clearList();
44 QString _name; 43 QString _name;
45 bool expanded; 44 bool expanded;
46 bool loaded; 45 bool loaded;
47}; 46};
48 47
49#endif 48#endif