Define separate methods for getting collapsed and expanded rows

Change-Id: I3449e163dd00283a04fd5147d81034d2f68a961f
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-11-17 13:30:53 +01:00
parent 848336251a
commit ff45f1c156
8 changed files with 35 additions and 17 deletions
@@ -77,9 +77,14 @@ SceneGraphTimelineModel::SceneGraphTimelineModel(QmlProfilerModelManager *manage
announceFeatures(1 << QmlDebug::ProfileSceneGraph);
}
int SceneGraphTimelineModel::row(int index) const
int SceneGraphTimelineModel::expandedRow(int index) const
{
return expanded() ? (selectionId(index) + 1) : m_data[index].rowNumberCollapsed;
return selectionId(index) + 1;
}
int SceneGraphTimelineModel::collapsedRow(int index) const
{
return m_data[index].rowNumberCollapsed;
}
int SceneGraphTimelineModel::typeId(int index) const