QmlOutline: Also show custom properties

Also show properties defined in the component, e.g. by 'property x',
in the outline.
This commit is contained in:
Kai Koehne
2010-07-14 13:32:42 +02:00
parent fe82dd7ff7
commit f00225a0f5
5 changed files with 45 additions and 16 deletions

View File

@@ -22,10 +22,12 @@ public:
QmlJS::Document::Ptr document() const;
void update(QmlJS::Document::Ptr doc, const QmlJS::Snapshot &snapshot);
QModelIndex enterElement(const QString &typeName, const QString &id, const QIcon &icon, const QmlJS::AST::SourceLocation &location);
QModelIndex enterElement(const QString &typeName, const QString &id, const QIcon &icon,
const QmlJS::AST::SourceLocation &location);
void leaveElement();
QModelIndex enterProperty(const QString &name, const QmlJS::AST::SourceLocation &location);
QModelIndex enterProperty(const QString &name, bool isCustomProperty,
const QmlJS::AST::SourceLocation &location);
void leaveProperty();
signals: