QString NavigatorWidget::contextHelpId() const { if (navigatorView()) return navigatorView()->contextHelpId(); return QString(); }
QString NavigatorWidget::contextHelpId() const { if (!navigatorView()) return QString(); QList<ModelNode> nodes = navigatorView()->selectedModelNodes(); QString helpId; if (!nodes.isEmpty()) { helpId = nodes.first().type(); helpId.replace("QtQuick", "QML"); } return helpId; }