QmlDesigner: break dependency to Core::IContext

Move the dependency from the abstract view into the plugin class. The
abstract view is now only returning the id.

Change-Id: I4f508c907bcdc8f717817fd40ef9c933e5fe2211
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marco Bubke
2022-09-14 16:33:56 +02:00
parent 1669f3996c
commit 68f27f3f04
18 changed files with 41 additions and 36 deletions

View File

@@ -228,9 +228,9 @@ void Edit3DWidget::onCreateAction()
void Edit3DWidget::contextHelp(const Core::IContext::HelpCallback &callback) const
{
if (m_view)
m_view->contextHelp(callback);
callback({});
QmlDesignerPlugin::contextHelp(callback, m_view->contextHelpId());
else
callback({});
}
void Edit3DWidget::showCanvas(bool show)