forked from qt-creator/qt-creator
Designer: Remove dead code
Change-Id: I8f930ffff178e9a1c4547331a1e92609657dbc00 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
@@ -155,13 +155,10 @@ QString fullyQualifiedName(const LookupContext &context, const Name *name, Scope
|
||||
return QString();
|
||||
|
||||
const QList<LookupItem> items = context.lookup(name, scope);
|
||||
if (items.isEmpty()) { // "ui_xxx.h" might not be generated and nothing is forward declared.
|
||||
if (items.isEmpty()) // "ui_xxx.h" might not be generated and nothing is forward declared.
|
||||
return Overview().prettyName(name);
|
||||
} else {
|
||||
Symbol *symbol = items.first().declaration();
|
||||
return Overview().prettyName(LookupContext::fullyQualifiedName(symbol));
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
|
||||
// Find class definition in namespace (that is, the outer class
|
||||
|
||||
Reference in New Issue
Block a user