author | tille <tille> | 2003-05-11 19:29:27 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-11 19:29:27 (UTC) |
commit | 10de2c93dffa16f6d2f1cf72fa20008757c5ef3a (patch) (unidiff) | |
tree | 561f501cf966e1f3ee6c9ce6d76ab9c227e7708a | |
parent | 43c18630840a98aed8deb96b454957c40f0a4344 (diff) | |
download | opie-10de2c93dffa16f6d2f1cf72fa20008757c5ef3a.zip opie-10de2c93dffa16f6d2f1cf72fa20008757c5ef3a.tar.gz opie-10de2c93dffa16f6d2f1cf72fa20008757c5ef3a.tar.bz2 |
colabse applnkitem in case of new search, since it's far to slow...
... I wonder how slow osearch will be on the pda!
-rw-r--r-- | core/pim/osearch/applnksearch.cpp | 8 | ||||
-rw-r--r-- | core/pim/osearch/applnksearch.h | 2 | ||||
-rw-r--r-- | core/pim/osearch/searchgroup.h | 1 |
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 | |||
@@ -53,3 +53,11 @@ void AppLnkSearch::insertItem( void *rec ) | |||
53 | { | 53 | { |
54 | new AppLnkItem( this, (AppLnk*)rec ); | 54 | new AppLnkItem( this, (AppLnk*)rec ); |
55 | } | 55 | } |
56 | |||
57 | void 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 | |||
@@ -27,7 +27,7 @@ public: | |||
27 | 27 | ||
28 | ~AppLnkSearch(); | 28 | ~AppLnkSearch(); |
29 | 29 | ||
30 | protected: | 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* ); |
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 | |||
@@ -39,7 +39,6 @@ protected: | |||
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; |
42 | private: | ||
43 | void clearList(); | 42 | void clearList(); |
44 | QString _name; | 43 | QString _name; |
45 | bool expanded; | 44 | bool expanded; |