forked from qt-creator/qt-creator
QmlOutline: Show id beside type name
Show id in addition to type string, but with a lighter text color
This commit is contained in:
@@ -30,9 +30,13 @@ public:
|
||||
QVariant data(int role = Qt::UserRole + 1) const;
|
||||
int type() const;
|
||||
|
||||
QString annotation() const;
|
||||
void setAnnotation(const QString &id);
|
||||
|
||||
QmlJS::AST::SourceLocation sourceLocation() const;
|
||||
void setSourceLocation(const QmlJS::AST::SourceLocation &location);
|
||||
|
||||
|
||||
QmlJS::AST::Node *node() const;
|
||||
void setNode(QmlJS::AST::Node *node);
|
||||
|
||||
@@ -58,6 +62,7 @@ public:
|
||||
enum CustomRoles {
|
||||
SourceLocationRole = Qt::UserRole + 1,
|
||||
ItemTypeRole,
|
||||
AnnotationRole
|
||||
};
|
||||
|
||||
enum ItemTypes {
|
||||
|
||||
Reference in New Issue
Block a user