Skip to content
Snippets Groups Projects
Commit b3764bed authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Get the icon from the template's declaration.

parent 6723e276
No related branches found
No related tags found
No related merge requests found
......@@ -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()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment