From ad4b589231caa023fdb9f4a8e1ba42fbf593d06f Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 13 Jan 2014 16:04:51 +0100 Subject: [PATCH] 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 Reviewed-by: Eike Ziller --- src/plugins/help/helpplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index e75d4860e89..1b48bad9e2b 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -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();