diff options
author | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2009-11-09 11:38:17 (GMT) |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2009-11-09 11:38:17 (GMT) |
commit | e9a06e6f9765c9632103c86fe190e8154ce4a9f8 (patch) | |
tree | cc9fc9c931423674081b6ab843d22bc643a5df64 /tools/assistant/lib/qhelpsearchengine.cpp | |
parent | 00aeefeeaff4d8c3e25c6f388c5e51c239541f87 (diff) | |
parent | a2a3adf7de2ffc9784fea177a43f3124862a992a (diff) | |
download | Qt-e9a06e6f9765c9632103c86fe190e8154ce4a9f8.zip Qt-e9a06e6f9765c9632103c86fe190e8154ce4a9f8.tar.gz Qt-e9a06e6f9765c9632103c86fe190e8154ce4a9f8.tar.bz2 |
Merge branch '4.6-api-review' into 4.6
Diffstat (limited to 'tools/assistant/lib/qhelpsearchengine.cpp')
-rw-r--r-- | tools/assistant/lib/qhelpsearchengine.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tools/assistant/lib/qhelpsearchengine.cpp b/tools/assistant/lib/qhelpsearchengine.cpp index cb18142..893495d 100644 --- a/tools/assistant/lib/qhelpsearchengine.cpp +++ b/tools/assistant/lib/qhelpsearchengine.cpp @@ -95,12 +95,11 @@ private: delete indexWriter; } - - int hitsCount() const + int hitCount() const { int count = 0; if (indexReader) - count = indexReader->hitsCount(); + count = indexReader->hitCount(); return count; } @@ -366,11 +365,22 @@ QHelpSearchResultWidget* QHelpSearchEngine::resultWidget() } /*! + \obsolete Returns the amount of hits the search engine found. + \sa hitCount() */ int QHelpSearchEngine::hitsCount() const { - return d->hitsCount(); + return d->hitCount(); +} + +/*! + \since 4.6 + Returns the amount of hits the search engine found. +*/ +int QHelpSearchEngine::hitCount() const +{ + return d->hitCount(); } /*! |