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:
@@ -135,11 +135,6 @@ int QmlProfilerAnimationsModel::rowFromThreadId(int threadId) const
|
||||
return (threadId == QmlDebug::GuiThread || m_maxGuiThreadAnimations == 0) ? 1 : 2;
|
||||
}
|
||||
|
||||
int QmlProfilerAnimationsModel::row(int index) const
|
||||
{
|
||||
return rowFromThreadId(selectionId(index));
|
||||
}
|
||||
|
||||
int QmlProfilerAnimationsModel::rowMaxValue(int rowNumber) const
|
||||
{
|
||||
switch (rowNumber) {
|
||||
@@ -157,6 +152,16 @@ int QmlProfilerAnimationsModel::typeId(int index) const
|
||||
return m_data[index].typeId;
|
||||
}
|
||||
|
||||
int QmlProfilerAnimationsModel::expandedRow(int index) const
|
||||
{
|
||||
return rowFromThreadId(selectionId(index));
|
||||
}
|
||||
|
||||
int QmlProfilerAnimationsModel::collapsedRow(int index) const
|
||||
{
|
||||
return rowFromThreadId(selectionId(index));
|
||||
}
|
||||
|
||||
QColor QmlProfilerAnimationsModel::color(int index) const
|
||||
{
|
||||
double fpsFraction = m_data[index].framerate / 60.0;
|
||||
|
||||
Reference in New Issue
Block a user