Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b3764bed
Commit
b3764bed
authored
Aug 13, 2010
by
Roberto Raggi
Browse files
Get the icon from the template's declaration.
parent
6723e276
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/Icons.cpp
View file @
b3764bed
...
...
@@ -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
()))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment