forked from qt-creator/qt-creator
CppEditor: Replace <no name> with <block> for blocks in the model inspector
Change-Id: Ifce24ebe1aaafd07d13821d9c385bd1af67dadff Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
32fa850a6d
commit
ab8b1f967a
@@ -791,7 +791,7 @@ QVariant SymbolsModel::data(const QModelIndex &index, int role) const
|
||||
} else if (column == SymbolColumn) {
|
||||
QString name = CPlusPlus::Overview().prettyName(symbol->name());
|
||||
if (name.isEmpty())
|
||||
name = QLatin1String("<no name>");
|
||||
name = QLatin1String(symbol->isBlock() ? "<block>" : "<no name>");
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user