Skip to content
GitLab
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
f02a852f
Commit
f02a852f
authored
Jan 07, 2011
by
Christian Kamm
Browse files
C++ completion: Skip Q_PROPERTY and Q_ENUMS symbols.
Reviewed-by: Erik Verbruggen
parent
0b5591ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodecompletion.cpp
View file @
f02a852f
...
...
@@ -1675,12 +1675,15 @@ void CppCodeCompletion::completeClass(ClassOrNamespace *b, bool staticLookup)
for
(
Scope
::
iterator
it
=
scope
->
firstMember
();
it
!=
scope
->
lastMember
();
++
it
)
{
Symbol
*
member
=
*
it
;
if
(
member
->
isFriend
())
if
(
member
->
isFriend
()
||
member
->
isQtPropertyDeclaration
()
||
member
->
isQtEnum
())
{
continue
;
else
if
(
!
staticLookup
&&
(
member
->
isTypedef
()
||
}
else
if
(
!
staticLookup
&&
(
member
->
isTypedef
()
||
member
->
isEnum
()
||
member
->
isClass
()))
member
->
isClass
()))
{
continue
;
}
addCompletionItem
(
member
);
}
...
...
src/shared/cplusplus/Symbol.cpp
View file @
f02a852f
...
...
@@ -373,6 +373,12 @@ bool Symbol::isClass() const
bool
Symbol
::
isForwardClassDeclaration
()
const
{
return
asForwardClassDeclaration
()
!=
0
;
}
bool
Symbol
::
isQtPropertyDeclaration
()
const
{
return
asQtPropertyDeclaration
()
!=
0
;
}
bool
Symbol
::
isQtEnum
()
const
{
return
asQtEnum
()
!=
0
;
}
bool
Symbol
::
isBlock
()
const
{
return
asBlock
()
!=
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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