summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib/qhelpsearchresultwidget.cpp
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-01-21 11:46:38 (GMT)
committerck <qt-info@nokia.com>2010-01-21 11:46:38 (GMT)
commitaf30aeb6a1ebb7307f06c122c0c93d152f4d958c (patch)
tree33bb60fc8e0fdbd1dfbbc8bff69f096a999d7660 /tools/assistant/lib/qhelpsearchresultwidget.cpp
parentd0cc0f02aa0ea2ac2a90fb19f53de37a5cad56d6 (diff)
downloadQt-af30aeb6a1ebb7307f06c122c0c93d152f4d958c.zip
Qt-af30aeb6a1ebb7307f06c122c0c93d152f4d958c.tar.gz
Qt-af30aeb6a1ebb7307f06c122c0c93d152f4d958c.tar.bz2
QtHelp: Enable dynamic translation.
Task-number: QTBUG-7420 Reviewed-by: kh1
Diffstat (limited to 'tools/assistant/lib/qhelpsearchresultwidget.cpp')
-rw-r--r--tools/assistant/lib/qhelpsearchresultwidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/assistant/lib/qhelpsearchresultwidget.cpp b/tools/assistant/lib/qhelpsearchresultwidget.cpp
index 3cac880..a3f5aed 100644
--- a/tools/assistant/lib/qhelpsearchresultwidget.cpp
+++ b/tools/assistant/lib/qhelpsearchresultwidget.cpp
@@ -408,6 +408,14 @@ QHelpSearchResultWidget::QHelpSearchResultWidget(QHelpSearchEngine *engine)
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.
*/