QmlJS.PropertyReader: Allow access to raw ast value

Change-Id: I92f9f241c9780345dd03b931232c4a811356c216
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Thomas Hartmann
2016-04-28 14:39:54 +02:00
parent c75c54e930
commit 1ba0e5cdf9
2 changed files with 18 additions and 6 deletions

View File

@@ -54,6 +54,14 @@ public:
return QVariant();
}
QString readAstValue(const QString &propertyName) const
{
if (hasProperty(propertyName))
return m_astPropertyValues.value(propertyName);
else
return QString();
}
QLinearGradient parseGradient(const QString &propertyName, bool *isBound) const;
QStringList properties() const
@@ -64,6 +72,7 @@ public:
private:
QHash<QString, QVariant> m_properties;
QHash<QString, QString> m_astPropertyValues;
QList<QString> m_bindingOrEnum;
AST::UiObjectInitializer *m_ast;
Document::Ptr m_doc;