forked from qt-creator/qt-creator
QmlJS.PropertyReader: Allow access to raw ast value
Change-Id: I92f9f241c9780345dd03b931232c4a811356c216 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user