From ab8b1f967a7c77d11da8ac3c645847131231d06d Mon Sep 17 00:00:00 2001
From: Orgad Shaneh <orgad.shaneh@audiocodes.com>
Date: Tue, 13 Jan 2015 09:02:45 +0200
Subject: [PATCH] CppEditor: Replace <no name> with <block> for blocks in the
 model inspector

Change-Id: Ifce24ebe1aaafd07d13821d9c385bd1af67dadff
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
---
 src/plugins/cppeditor/cppcodemodelinspectordialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
index 7826148d30..d3469606bc 100644
--- a/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
+++ b/src/plugins/cppeditor/cppcodemodelinspectordialog.cpp
@@ -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;
         }
     }
-- 
GitLab