diff -r 3b1da2848fc7 -r d3bac044e0f0 tools/assistant/lib/qhelpsearchresultwidget.cpp --- a/tools/assistant/lib/qhelpsearchresultwidget.cpp Fri Feb 19 23:40:16 2010 +0200 +++ b/tools/assistant/lib/qhelpsearchresultwidget.cpp Fri Mar 12 15:46:37 2010 +0200 @@ -73,7 +73,7 @@ void showResultPage(const QList hits) { - foreach (const QHelpSearchEngine::SearchHit hit, hits) + foreach (const QHelpSearchEngine::SearchHit &hit, hits) new QTreeWidgetItem(this, QStringList(hit.first) << hit.second); } @@ -118,7 +118,7 @@ .arg(tr("The search results may not be complete since the " "documentation is still being indexed!")); - foreach (const QHelpSearchEngine::SearchHit hit, hits) { + foreach (const QHelpSearchEngine::SearchHit &hit, hits) { htmlFile += QString(QLatin1String("
%2
%1

")) @@ -408,6 +408,14 @@ connect(engine, SIGNAL(searchingFinished(int)), d, SLOT(setResults(int))); } +/*! \reimp +*/ +void QHelpSearchResultWidget::changeEvent(QEvent *event) +{ + if (event->type() == QEvent::LanguageChange) + d->setResults(d->searchEngine->hitCount()); +} + /*! Destroys the search result widget. */