forked from qt-creator/qt-creator
QmlOutline: Show functions in outline
Reviewed-by: Christiaan Janssen
(cherry picked from commit e871b7e330)
This commit is contained in:
@@ -50,6 +50,7 @@ public:
|
||||
QIcon elementIcon;
|
||||
QIcon propertyIcon;
|
||||
QIcon publicMemberIcon;
|
||||
QIcon functionDeclarationIcon;
|
||||
QHash<QPair<QString,QString>,QIcon> iconHash;
|
||||
QString resourcePath;
|
||||
};
|
||||
@@ -62,6 +63,7 @@ Icons::Icons()
|
||||
m_d->elementIcon = QIcon(QLatin1String(":/qmljs/images/element.png"));
|
||||
m_d->propertyIcon = QIcon(QLatin1String(":/qmljs/images/property.png"));
|
||||
m_d->publicMemberIcon = QIcon(QLatin1String(":/qmljs/images/publicmember.png"));
|
||||
m_d->functionDeclarationIcon = QIcon(QLatin1String(":/qmljs/images/func.png"));
|
||||
}
|
||||
|
||||
Icons::~Icons()
|
||||
@@ -141,3 +143,8 @@ QIcon Icons::publicMemberIcon() const
|
||||
{
|
||||
return m_d->publicMemberIcon;
|
||||
}
|
||||
|
||||
QIcon Icons::functionDeclarationIcon() const
|
||||
{
|
||||
return m_d->functionDeclarationIcon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user