author | llornkcor <llornkcor> | 2003-11-05 10:39:07 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-11-05 10:39:07 (UTC) |
commit | 15163234024750178829812f31a1e7173a66fa1d (patch) (unidiff) | |
tree | f5bae5403ebe3194d95a58783f06895659616e8e | |
parent | 91369ae9ca93f499fd0883a13f046a4b435d1b56 (diff) | |
download | opie-15163234024750178829812f31a1e7173a66fa1d.zip opie-15163234024750178829812f31a1e7173a66fa1d.tar.gz opie-15163234024750178829812f31a1e7173a66fa1d.tar.bz2 |
make compile. needs fixing
-rw-r--r-- | core/pim/osearch/doclnksearch.cpp | 4 | ||||
-rw-r--r-- | core/pim/osearch/searchgroup.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/pim/osearch/doclnksearch.cpp b/core/pim/osearch/doclnksearch.cpp index ef0e482..26097a4 100644 --- a/core/pim/osearch/doclnksearch.cpp +++ b/core/pim/osearch/doclnksearch.cpp | |||
@@ -79,15 +79,17 @@ void DocLnkSearch::insertItem( void *rec ) | |||
79 | (void)new DocLnkItem( this, (DocLnk*)rec ); | 79 | (void)new DocLnkItem( this, (DocLnk*)rec ); |
80 | _resultCount++; | 80 | _resultCount++; |
81 | } | 81 | } |
82 | 82 | ||
83 | 83 | ||
84 | QPopupMenu* DocLnkSearch::popupMenu() | 84 | QPopupMenu* DocLnkSearch::popupMenu() |
85 | { | 85 | { |
86 | if (!_popupMenu){ | 86 | if (!_popupMenu){ |
87 | _popupMenu = new QPopupMenu( 0 ); | 87 | _popupMenu = new QPopupMenu( 0 ); |
88 | actionSearchInFiles->addTo( _popupMenu ); | 88 | actionSearchInFiles->addTo( _popupMenu ); |
89 | } | 89 | } |
90 | return _popupMenu; | 90 | return _popupMenu; |
91 | (void) new DocLnkItem( this, (DocLnk*)rec ); | 91 | //(void) new DocLnkItem( this, (DocLnk*)rec ); |
92 | // rec is undeclared here | ||
93 | #warning FIXME | ||
92 | _resultCount++; | 94 | _resultCount++; |
93 | } | 95 | } |
diff --git a/core/pim/osearch/searchgroup.h b/core/pim/osearch/searchgroup.h index 23aa82a..48097ab 100644 --- a/core/pim/osearch/searchgroup.h +++ b/core/pim/osearch/searchgroup.h | |||
@@ -18,32 +18,32 @@ | |||
18 | class QRegExp; | 18 | class QRegExp; |
19 | class QPopupMenu; | 19 | class QPopupMenu; |
20 | 20 | ||
21 | /** | 21 | /** |
22 | @author Patrick S. Vogt | 22 | @author Patrick S. Vogt |
23 | */ | 23 | */ |
24 | class SearchGroup : public OListViewItem | 24 | class SearchGroup : public OListViewItem |
25 | { | 25 | { |
26 | public: | 26 | public: |
27 | SearchGroup(QListView* parent, QString name); | 27 | SearchGroup(QListView* parent, QString name); |
28 | 28 | ||
29 | ~SearchGroup(); | 29 | ~SearchGroup(); |
30 | int _resultCount; | ||
30 | 31 | ||
31 | virtual void expand(); | 32 | virtual void expand(); |
32 | virtual void doSearch(); | 33 | virtual void doSearch(); |
33 | virtual void setSearch(QRegExp); | 34 | virtual void setSearch(QRegExp); |
34 | virtual int rtti() { return Searchgroup;} | 35 | virtual int rtti() { return Searchgroup;} |
35 | 36 | ||
36 | protected: | 37 | protected: |
37 | virtual void load() = 0; | 38 | virtual void load() = 0; |
38 | virtual int search() = 0; | 39 | virtual int search() = 0; |
39 | virtual void insertItem( void* ) = 0; | 40 | virtual void insertItem( void* ) = 0; |
40 | QRegExp _search; | 41 | QRegExp _search; |
41 | QRegExp _lastSearch; | 42 | QRegExp _lastSearch; |
42 | QString _name; | 43 | QString _name; |
43 | private: | 44 | private: |
44 | int realSearch(); | 45 | int realSearch(); |
45 | bool loaded :1; | 46 | bool loaded :1; |
46 | int _resultCount; | ||
47 | }; | 47 | }; |
48 | 48 | ||
49 | #endif | 49 | #endif |