mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
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:
parent
8bf4058499
commit
7c37d3413f
@ -60,7 +60,7 @@ int FunctionModel::rowCount(const QModelIndex &parent) const
|
|||||||
|
|
||||||
if (nested) {
|
if (nested) {
|
||||||
if (parent.internalId() == 0)
|
if (parent.internalId() == 0)
|
||||||
return ColumnCount; // sub-nodes for nested functions
|
return ColumnCount - 1; // sub-nodes for nested functions
|
||||||
return 0;
|
return 0;
|
||||||
} else
|
} else
|
||||||
return 0;
|
return 0;
|
||||||
@ -130,7 +130,7 @@ QVariant FunctionModel::data(const QModelIndex &index, int role) const
|
|||||||
case 9:
|
case 9:
|
||||||
return tr("Cost: %1").arg(function.cost);
|
return tr("Cost: %1").arg(function.cost);
|
||||||
case 10:
|
case 10:
|
||||||
return tr("Calls/OutDeg.: %1").arg(function.calls);
|
return tr("Calls/OutDegree: %1").arg(function.calls);
|
||||||
case 11:
|
case 11:
|
||||||
return tr("StackFrame: %1").arg(function.stackframe);
|
return tr("StackFrame: %1").arg(function.stackframe);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user