forked from qt-creator/qt-creator
AutoTest: Find inherited Qt test methods
Task-number: QTCREATORBUG-17522 Change-Id: Ie7cfed2bd38944c28ea8502552593e0083f9727c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -83,10 +83,17 @@ bool TestVisitor::visit(CPlusPlus::Class *symbol)
|
||||
locationAndType.m_type = TestTreeItem::TestDataFunction;
|
||||
else
|
||||
locationAndType.m_type = TestTreeItem::TestFunctionOrSet;
|
||||
locationAndType.m_inherited = false; // for now
|
||||
locationAndType.m_inherited = m_inherited;
|
||||
m_privSlots.insert(name, locationAndType);
|
||||
}
|
||||
}
|
||||
for (unsigned counter = 0, end = symbol->baseClassCount(); counter < end; ++counter) {
|
||||
if (CPlusPlus::BaseClass *base = symbol->baseClassAt(counter)) {
|
||||
const QString &baseClassName = o.prettyName(lc.fullyQualifiedName(base));
|
||||
if (baseClassName != "QObject")
|
||||
m_baseClasses.insert(baseClassName);
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user