forked from qt-creator/qt-creator
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:
@@ -97,6 +97,12 @@ void SearchWidget::resetZoom()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SearchWidget::reindexDocumentation()
|
||||||
|
{
|
||||||
|
if (searchEngine)
|
||||||
|
searchEngine->reindexDocumentation();
|
||||||
|
}
|
||||||
|
|
||||||
void SearchWidget::showEvent(QShowEvent *event)
|
void SearchWidget::showEvent(QShowEvent *event)
|
||||||
{
|
{
|
||||||
if (!event->spontaneous() && !searchEngine) {
|
if (!event->spontaneous() && !searchEngine) {
|
||||||
@@ -285,6 +291,6 @@ QList<QToolButton *> SearchSideBarItem::createToolBarWidgets()
|
|||||||
reindexButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RELOAD_GRAY)));
|
reindexButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RELOAD_GRAY)));
|
||||||
reindexButton->setToolTip(tr("Regenerate Index"));
|
reindexButton->setToolTip(tr("Regenerate Index"));
|
||||||
connect(reindexButton, SIGNAL(clicked()),
|
connect(reindexButton, SIGNAL(clicked()),
|
||||||
LocalHelpManager::helpEngine().searchEngine(), SLOT(reindexDocumentation()));
|
widget(), SLOT(reindexDocumentation()));
|
||||||
return QList<QToolButton *>() << reindexButton;
|
return QList<QToolButton *>() << reindexButton;
|
||||||
}
|
}
|
||||||
|
@@ -72,6 +72,10 @@ public:
|
|||||||
void zoomOut();
|
void zoomOut();
|
||||||
void resetZoom();
|
void resetZoom();
|
||||||
|
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void reindexDocumentation();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void linkActivated(const QUrl &link, bool newPage);
|
void linkActivated(const QUrl &link, bool newPage);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user