Reviewed-by: Erik Verbruggen
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);
}
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; }