Fixed an extra empty row inside Vertical View in Function Widget (#797)

* Fixed an extra empty row inside Vertical View in Function Widget

* Should use full column name inside Vertical view
This commit is contained in:
Ankur Saini 2018-10-11 17:35:47 +05:30 committed by Itay Cohen
parent 8bf4058499
commit 7c37d3413f

View File

@ -60,7 +60,7 @@ int FunctionModel::rowCount(const QModelIndex &parent) const
if (nested) {
if (parent.internalId() == 0)
return ColumnCount; // sub-nodes for nested functions
return ColumnCount - 1; // sub-nodes for nested functions
return 0;
} else
return 0;
@ -130,7 +130,7 @@ QVariant FunctionModel::data(const QModelIndex &index, int role) const
case 9:
return tr("Cost: %1").arg(function.cost);
case 10:
return tr("Calls/OutDeg.: %1").arg(function.calls);
return tr("Calls/OutDegree: %1").arg(function.calls);
case 11:
return tr("StackFrame: %1").arg(function.stackframe);
default: