author | tille <tille> | 2003-05-12 11:26:06 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-12 11:26:06 (UTC) |
commit | 47a67025a4d34635877ece741def266e28e46db8 (patch) (unidiff) | |
tree | 4f7e3e9bf4bfe82a217958959d4ab89eb1ae79bd /core/pim/osearch/searchgroup.cpp | |
parent | bc87629a1a871888e010f885ee40b2c3d6283ab4 (diff) | |
download | opie-47a67025a4d34635877ece741def266e28e46db8.zip opie-47a67025a4d34635877ece741def266e28e46db8.tar.gz opie-47a67025a4d34635877ece741def266e28e46db8.tar.bz2 |
added menus
Diffstat (limited to 'core/pim/osearch/searchgroup.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/searchgroup.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/pim/osearch/searchgroup.cpp b/core/pim/osearch/searchgroup.cpp index d062207..3159984 100644 --- a/core/pim/osearch/searchgroup.cpp +++ b/core/pim/osearch/searchgroup.cpp | |||
@@ -42,6 +42,14 @@ void SearchGroup::expand() | |||
42 | delete dummy; | 42 | delete dummy; |
43 | } | 43 | } |
44 | 44 | ||
45 | void SearchGroup::doSearch() | ||
46 | { | ||
47 | clearList(); | ||
48 | if (_search.isEmpty()) return; | ||
49 | if (!loaded) load(); | ||
50 | int res_count = search(); | ||
51 | setText(0, _name + " - " + _search.pattern() + " (" + QString::number( res_count ) + ")"); | ||
52 | } | ||
45 | 53 | ||
46 | void SearchGroup::clearList() | 54 | void SearchGroup::clearList() |
47 | { | 55 | { |
@@ -56,13 +64,6 @@ void SearchGroup::clearList() | |||
56 | expanded = true; | 64 | expanded = true; |
57 | } | 65 | } |
58 | 66 | ||
59 | void SearchGroup::setSearch(QString s) | ||
60 | { | ||
61 | setSearch( QRegExp( s ) ); | ||
62 | _search.setCaseSensitive(false); | ||
63 | } | ||
64 | |||
65 | |||
66 | void SearchGroup::setSearch(QRegExp re) | 67 | void SearchGroup::setSearch(QRegExp re) |
67 | { | 68 | { |
68 | setText(0, _name+" - "+re.pattern() ); | 69 | setText(0, _name+" - "+re.pattern() ); |