Diffstat (limited to 'core/pim/osearch/searchgroup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/searchgroup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/osearch/searchgroup.cpp b/core/pim/osearch/searchgroup.cpp index 7a0b5a7..9166f72 100644 --- a/core/pim/osearch/searchgroup.cpp +++ b/core/pim/osearch/searchgroup.cpp | |||
@@ -4,33 +4,33 @@ | |||
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 "searchgroup.h" | 13 | #include "searchgroup.h" |
14 | 14 | ||
15 | #include <opie2/owait.h> | 15 | #include <opie2/owait.h> |
16 | 16 | ||
17 | #include <qapplication.h> | 17 | #include <qapplication.h> |
18 | 18 | ||
19 | #ifndef NEW_OWAIT | 19 | #ifndef NEW_OWAIT |
20 | static OWait *wait = 0; | 20 | static Opie::Ui::OWait *wait = 0; |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | SearchGroup::SearchGroup(QListView* parent, QString name) | 23 | SearchGroup::SearchGroup(QListView* parent, QString name) |
24 | : OListViewItem(parent, name) | 24 | : OListViewItem(parent, name) |
25 | { | 25 | { |
26 | _name = name; | 26 | _name = name; |
27 | loaded = false; | 27 | loaded = false; |
28 | } | 28 | } |
29 | 29 | ||
30 | 30 | ||
31 | SearchGroup::~SearchGroup() | 31 | SearchGroup::~SearchGroup() |
32 | { | 32 | { |
33 | } | 33 | } |
34 | 34 | ||
35 | 35 | ||
36 | void SearchGroup::expand() | 36 | void SearchGroup::expand() |
@@ -55,33 +55,33 @@ void SearchGroup::doSearch() | |||
55 | //repaint(); | 55 | //repaint(); |
56 | } | 56 | } |
57 | 57 | ||
58 | void SearchGroup::setSearch(QRegExp re) | 58 | void SearchGroup::setSearch(QRegExp re) |
59 | { | 59 | { |
60 | if (re == _search) return; | 60 | if (re == _search) return; |
61 | setText(0, _name+" - "+re.pattern() ); | 61 | setText(0, _name+" - "+re.pattern() ); |
62 | _search = re; | 62 | _search = re; |
63 | if (isOpen()) expand(); | 63 | if (isOpen()) expand(); |
64 | else new OListViewItem( this, "searching..."); | 64 | else new OListViewItem( this, "searching..."); |
65 | } | 65 | } |
66 | 66 | ||
67 | int SearchGroup::realSearch() | 67 | int SearchGroup::realSearch() |
68 | { | 68 | { |
69 | if (_lastSearch == _search) return _resultCount; | 69 | if (_lastSearch == _search) return _resultCount; |
70 | #ifndef NEW_OWAIT | 70 | #ifndef NEW_OWAIT |
71 | if (!wait) wait = new OWait( qApp->mainWidget(), "osearch" ); | 71 | if (!wait) wait = new Opie::Ui::OWait( qApp->mainWidget(), "osearch" ); |
72 | wait->show(); | 72 | wait->show(); |
73 | qApp->processEvents(); | 73 | qApp->processEvents(); |
74 | #else | 74 | #else |
75 | qDebug("********** NEW_OWAIT *************"); | 75 | qDebug("********** NEW_OWAIT *************"); |
76 | OWait( "searching" ); | 76 | OWait( "searching" ); |
77 | #endif | 77 | #endif |
78 | if (!loaded) load(); | 78 | if (!loaded) load(); |
79 | _resultCount = 0; | 79 | _resultCount = 0; |
80 | _resultCount = search(); | 80 | _resultCount = search(); |
81 | _lastSearch = _search; | 81 | _lastSearch = _search; |
82 | setText(0, _name + " - " + _search.pattern() + " (" + QString::number( _resultCount ) + ")"); | 82 | setText(0, _name + " - " + _search.pattern() + " (" + QString::number( _resultCount ) + ")"); |
83 | 83 | ||
84 | #ifndef NEW_OWAIT | 84 | #ifndef NEW_OWAIT |
85 | wait->hide(); | 85 | wait->hide(); |
86 | #endif | 86 | #endif |
87 | return _resultCount; | 87 | return _resultCount; |