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