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