forked from qt-creator/qt-creator
Fixed inline implemented methods not showing up in the methods filter
Done with Roberto Raggi. Task-number: QTCREATORBUG-405
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user