forked from qt-creator/qt-creator
Core: Return context help id by callback
...to support asynchronous providers. Change-Id: I483489c74e7886d5bc2bf00b65540c3d2c7afee0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -45,10 +45,10 @@ DesignerContext::DesignerContext(const Core::Context &context,
|
||||
setWidget(widget);
|
||||
}
|
||||
|
||||
QString DesignerContext::contextHelpId() const
|
||||
void DesignerContext::contextHelpId(const HelpIdCallback &callback) const
|
||||
{
|
||||
const QDesignerFormEditorInterface *core = FormEditorW::designerEditor();
|
||||
return core->integration()->contextHelpId();
|
||||
callback(core->integration()->contextHelpId());
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user