Help Search: Fix re-index button

The re-index button was connected to the wrong help search engine.

Change-Id: I945853886a8cb0462eef71d22c48a1ac92c1eec1
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2014-10-22 15:53:20 +02:00
parent 7c795b6667
commit 7d475b78c5
2 changed files with 11 additions and 1 deletions

View File

@@ -97,6 +97,12 @@ void SearchWidget::resetZoom()
}
}
void SearchWidget::reindexDocumentation()
{
if (searchEngine)
searchEngine->reindexDocumentation();
}
void SearchWidget::showEvent(QShowEvent *event)
{
if (!event->spontaneous() && !searchEngine) {
@@ -285,6 +291,6 @@ QList<QToolButton *> SearchSideBarItem::createToolBarWidgets()
reindexButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RELOAD_GRAY)));
reindexButton->setToolTip(tr("Regenerate Index"));
connect(reindexButton, SIGNAL(clicked()),
LocalHelpManager::helpEngine().searchEngine(), SLOT(reindexDocumentation()));
widget(), SLOT(reindexDocumentation()));
return QList<QToolButton *>() << reindexButton;
}

View File

@@ -72,6 +72,10 @@ public:
void zoomOut();
void resetZoom();
public slots:
void reindexDocumentation();
signals:
void linkActivated(const QUrl &link, bool newPage);