Get the icon from the template's declaration.

This commit is contained in:
Roberto Raggi
2010-08-13 18:10:36 +02:00
parent 6723e276e5
commit b3764bedee

View File

@@ -74,6 +74,11 @@ QIcon Icons::macroIcon() const
Icons::IconType Icons::iconTypeForSymbol(const Symbol *symbol)
{
if (const Template *templ = symbol->asTemplate()) {
if (Symbol *decl = templ->declaration())
return iconTypeForSymbol(decl);
}
FullySpecifiedType symbolType = symbol->type();
if (symbol->isFunction() || (symbol->isDeclaration() && symbolType &&
symbolType->isFunctionType()))