Fix pressing escape in help viewers find tool bar (in Help mode)

The tool bar should not be a direct child of the widget that is searched
(i.e. that has the FindSupport attached).

Change-Id: Ib6b17c4d2df39798086ae41d1b3a0e394e7afa75
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2014-01-13 16:04:51 +01:00
parent 4d96fa7aba
commit ad4b589231

View File

@@ -342,7 +342,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
layout->setSpacing(0);
FindToolBarPlaceHolder *fth = new FindToolBarPlaceHolder(m_centralWidget);
fth->setObjectName(QLatin1String("HelpFindToolBarPlaceHolder"));
layout->addWidget(fth);
mainWidgetLayout->addWidget(fth);
}
HelpIndexFilter *helpIndexFilter = new HelpIndexFilter();