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,14 +155,11 @@ QString fullyQualifiedName(const LookupContext &context, const Name *name, Scope
|
|||||||
return QString();
|
return QString();
|
||||||
|
|
||||||
const QList<LookupItem> items = context.lookup(name, scope);
|
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);
|
return Overview().prettyName(name);
|
||||||
} else {
|
|
||||||
Symbol *symbol = items.first().declaration();
|
Symbol *symbol = items.first().declaration();
|
||||||
return Overview().prettyName(LookupContext::fullyQualifiedName(symbol));
|
return Overview().prettyName(LookupContext::fullyQualifiedName(symbol));
|
||||||
}
|
}
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Find class definition in namespace (that is, the outer class
|
// Find class definition in namespace (that is, the outer class
|
||||||
// containing a member of the desired class type) or inheriting the desired class
|
// containing a member of the desired class type) or inheriting the desired class
|
||||||
|
|||||||
Reference in New Issue
Block a user