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:
@@ -531,11 +531,12 @@ void DesignModeWidget::showInternalTextEditor()
|
||||
m_centralTabWidget->switchTo(viewManager().widget("TextEditor"));
|
||||
}
|
||||
|
||||
QString DesignModeWidget::contextHelpId() const
|
||||
void DesignModeWidget::contextHelpId(const Core::IContext::HelpIdCallback &callback) const
|
||||
{
|
||||
if (currentDesignDocument())
|
||||
return currentDesignDocument()->contextHelpId();
|
||||
return QString();
|
||||
currentDesignDocument()->contextHelpId(callback);
|
||||
else
|
||||
callback(QString());
|
||||
}
|
||||
|
||||
void DesignModeWidget::initialize()
|
||||
|
||||
Reference in New Issue
Block a user