QmlProfiler: Add scales to rows in timeline

If you resize the rows to at least double their default size and if the
model specifies a scale it will be drawn as additional horizontal lines
and numbers in the background.

Change-Id: I02844b4102e043031ee04daa45666dc3f8da1d2e
Task-number: QTCREATORBUG-12337
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-06-23 12:34:37 +02:00
parent f30cbf9711
commit 0d695617f1
5 changed files with 82 additions and 2 deletions

View File

@@ -237,6 +237,18 @@ float AbstractTimelineModel::getHeight(int index) const
return 1.0f;
}
int AbstractTimelineModel::rowMinValue(int rowNumber) const
{
Q_UNUSED(rowNumber);
return 0;
}
int AbstractTimelineModel::rowMaxValue(int rowNumber) const
{
Q_UNUSED(rowNumber);
return 0;
}
void AbstractTimelineModel::dataChanged()
{
Q_D(AbstractTimelineModel);