equal
deleted
inserted
replaced
93 { |
93 { |
94 delete indexReader; |
94 delete indexReader; |
95 delete indexWriter; |
95 delete indexWriter; |
96 } |
96 } |
97 |
97 |
98 |
98 int hitCount() const |
99 int hitsCount() const |
|
100 { |
99 { |
101 int count = 0; |
100 int count = 0; |
102 if (indexReader) |
101 if (indexReader) |
103 count = indexReader->hitsCount(); |
102 count = indexReader->hitCount(); |
104 |
103 |
105 return count; |
104 return count; |
106 } |
105 } |
107 |
106 |
108 QList<QHelpSearchEngine::SearchHit> hits(int start, int end) const |
107 QList<QHelpSearchEngine::SearchHit> hits(int start, int end) const |
364 |
363 |
365 return d->resultWidget; |
364 return d->resultWidget; |
366 } |
365 } |
367 |
366 |
368 /*! |
367 /*! |
|
368 \obsolete |
369 Returns the amount of hits the search engine found. |
369 Returns the amount of hits the search engine found. |
|
370 \sa hitCount() |
370 */ |
371 */ |
371 int QHelpSearchEngine::hitsCount() const |
372 int QHelpSearchEngine::hitsCount() const |
372 { |
373 { |
373 return d->hitsCount(); |
374 return d->hitCount(); |
|
375 } |
|
376 |
|
377 /*! |
|
378 \since 4.6 |
|
379 Returns the amount of hits the search engine found. |
|
380 */ |
|
381 int QHelpSearchEngine::hitCount() const |
|
382 { |
|
383 return d->hitCount(); |
374 } |
384 } |
375 |
385 |
376 /*! |
386 /*! |
377 \typedef QHelpSearchEngine::SearchHit |
387 \typedef QHelpSearchEngine::SearchHit |
378 |
388 |