Commit f02a852f authored by Christian Kamm's avatar Christian Kamm
Browse files

C++ completion: Skip Q_PROPERTY and Q_ENUMS symbols.

Reviewed-by: Erik Verbruggen
parent 0b5591ae
......@@ -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);
}
......
......@@ -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; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment