QmlProfiler: Separate expanded and collapsed row heights and counts

We'll need to access both of them when building the scene graph. This
change also clarifies the dynamics between expanding categories and
row heights and offsets.

Change-Id: I2e2bf488ad973c95d05f230bf6fff63598f39bf2
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-11-18 17:37:25 +01:00
parent bc4586ffbe
commit 725623583f
10 changed files with 98 additions and 62 deletions

View File

@@ -188,12 +188,14 @@ QString QmlProfilerRangeModel::categoryLabel(QmlDebug::RangeType rangeType)
QmlProfilerModelManager::featureName(QmlDebug::featureFromRangeType(rangeType)));
}
int QmlProfilerRangeModel::row(int index) const
int QmlProfilerRangeModel::expandedRow(int index) const
{
if (expanded())
return m_data[index].displayRowExpanded;
else
return m_data[index].displayRowCollapsed;
return m_data[index].displayRowExpanded;
}
int QmlProfilerRangeModel::collapsedRow(int index) const
{
return m_data[index].displayRowCollapsed;
}
int QmlProfilerRangeModel::bindingLoopDest(int index) const