forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user