diff --git a/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp b/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp index 700d1ea5d10..df3520af74d 100644 --- a/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp +++ b/src/plugins/valgrind/callgrind/callgrinddatamodel.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include namespace Valgrind { @@ -250,7 +251,7 @@ QVariant DataModel::data(const QModelIndex &index, int role) const // body, function info first ret += "
"; - ret += "
" + tr("Function:") + "
" + func->name() + "
\n"; + ret += "
" + tr("Function:") + "
" + Qt::escape(func->name()) + "
\n"; ret += "
" + tr("File:") + "
" + func->file() + "
\n"; if (!func->costItems().isEmpty()) { const CostItem *firstItem = func->costItems().first();