Fixed inline implemented methods not showing up in the methods filter

Done with Roberto Raggi.

Task-number: QTCREATORBUG-405
This commit is contained in:
Thorbjørn Lindeijer
2009-12-03 11:34:31 +01:00
parent bb567ef622
commit 5373017abd

View File

@@ -145,15 +145,14 @@ bool SearchSymbols::visit(Declaration *symbol)
bool SearchSymbols::visit(Class *symbol) bool SearchSymbols::visit(Class *symbol)
{ {
if (!(symbolsToSearchFor & Classes))
return false;
QString name = symbolName(symbol); QString name = symbolName(symbol);
QString scopedName = scopedSymbolName(name); QString scopedName = scopedSymbolName(name);
QString previousScope = switchScope(scopedName); QString previousScope = switchScope(scopedName);
appendItem(separateScope ? name : scopedName, if (symbolsToSearchFor & Classes) {
separateScope ? previousScope : QString(), appendItem(separateScope ? name : scopedName,
ModelItemInfo::Class, symbol); separateScope ? previousScope : QString(),
ModelItemInfo::Class, symbol);
}
Scope *members = symbol->members(); Scope *members = symbol->members();
for (unsigned i = 0; i < members->symbolCount(); ++i) { for (unsigned i = 0; i < members->symbolCount(); ++i) {
accept(members->symbolAt(i)); accept(members->symbolAt(i));