forked from qt-creator/qt-creator
Exclude anonymous symbols from the QuickOpen
They're not overly useful to have in there, since they don't have a name you could type to jump to them. Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -196,6 +196,9 @@ void SearchSymbols::appendItem(const QString &name,
|
|||||||
ModelItemInfo::ItemType type,
|
ModelItemInfo::ItemType type,
|
||||||
const Symbol *symbol)
|
const Symbol *symbol)
|
||||||
{
|
{
|
||||||
|
if (!symbol->name())
|
||||||
|
return;
|
||||||
|
|
||||||
const QIcon icon = icons.iconForSymbol(symbol);
|
const QIcon icon = icons.iconForSymbol(symbol);
|
||||||
items.append(ModelItemInfo(name, info, type,
|
items.append(ModelItemInfo(name, info, type,
|
||||||
QString::fromUtf8(symbol->fileName(), symbol->fileNameLength()),
|
QString::fromUtf8(symbol->fileName(), symbol->fileNameLength()),
|
||||||
|
|||||||
Reference in New Issue
Block a user