forked from qt-creator/qt-creator
qmljs: make context help more robust
Try harder to get help for types even if the parsing is almost completely broken. Task-number: QTCREATORBUG-3169 Change-Id: I013a0aa45c654570c88ef77564bed43727fce5fb Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -52,6 +52,7 @@ class ScopeChain;
|
||||
class Context;
|
||||
typedef QSharedPointer<const Context> ContextPtr;
|
||||
class Value;
|
||||
class ObjectValue;
|
||||
}
|
||||
|
||||
namespace QmlJSEditor {
|
||||
@@ -85,9 +86,11 @@ private:
|
||||
void prettyPrintTooltip(const QmlJS::Value *value,
|
||||
const QmlJS::ContextPtr &context);
|
||||
|
||||
TextEditor::HelpItem qmlHelpItem(const QmlJS::ScopeChain &lookupContext,
|
||||
const QmlJS::Document::Ptr &qmlDocument,
|
||||
QmlJS::AST::Node *node) const;
|
||||
bool setQmlTypeHelp(const QmlJS::ScopeChain &scopeChain, const QmlJS::Document::Ptr &qmlDocument,
|
||||
const QmlJS::ObjectValue *value, const QStringList &qName);
|
||||
bool setQmlHelpItem(const QmlJS::ScopeChain &lookupContext,
|
||||
const QmlJS::Document::Ptr &qmlDocument,
|
||||
QmlJS::AST::Node *node);
|
||||
|
||||
QmlJS::ModelManagerInterface *m_modelManager;
|
||||
QColor m_colorTip;
|
||||
|
||||
Reference in New Issue
Block a user