Qt Quick Designer: Adapt to naming change in IContext

Since context help is no longer based solely on an ID.

Change-Id: I34bb81b70632df9fb75bdcf28b022418d4aa764b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Eike Ziller
2019-01-28 11:58:53 +01:00
parent c9cdca105c
commit 1ee005aef4
17 changed files with 31 additions and 31 deletions

View File

@@ -152,12 +152,12 @@ WidgetInfo TextEditorView::widgetInfo()
return createWidgetInfo(m_widget, nullptr, "TextEditor", WidgetInfo::CentralPane, 0, tr("Text Editor"), DesignerWidgetFlags::IgnoreErrors);
}
void TextEditorView::contextHelpId(const Core::IContext::HelpCallback &callback) const
void TextEditorView::contextHelp(const Core::IContext::HelpCallback &callback) const
{
AbstractView::contextHelpId(callback);
AbstractView::contextHelp(callback);
}
void TextEditorView::qmlJSEditorHelpId(const Core::IContext::HelpCallback &callback) const
void TextEditorView::qmlJSEditorContextHelp(const Core::IContext::HelpCallback &callback) const
{
if (m_widget->textEditor())
m_widget->textEditor()->contextHelp(callback);