forked from qt-creator/qt-creator
Rename relative height of items in timeline to "relativeHeight"
Change-Id: I3fb0d91dafbb42b0422263b6710b1a0fcb4c193c Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -78,7 +78,7 @@ QColor MemoryUsageModel::color(int index) const
|
|||||||
return colorByEventId(index);
|
return colorByEventId(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
float MemoryUsageModel::height(int index) const
|
float MemoryUsageModel::relativeHeight(int index) const
|
||||||
{
|
{
|
||||||
Q_D(const MemoryUsageModel);
|
Q_D(const MemoryUsageModel);
|
||||||
return qMin(1.0f, (float)d->data[index].size / (float)d->maxSize);
|
return qMin(1.0f, (float)d->data[index].size / (float)d->maxSize);
|
||||||
|
@@ -56,7 +56,7 @@ public:
|
|||||||
int row(int index) const;
|
int row(int index) const;
|
||||||
int eventId(int index) const;
|
int eventId(int index) const;
|
||||||
QColor color(int index) const;
|
QColor color(int index) const;
|
||||||
float height(int index) const;
|
float relativeHeight(int index) const;
|
||||||
|
|
||||||
QVariantMap location(int index) const;
|
QVariantMap location(int index) const;
|
||||||
|
|
||||||
|
@@ -132,7 +132,7 @@ QColor PixmapCacheModel::color(int index) const
|
|||||||
return colorByEventId(index);
|
return colorByEventId(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
float PixmapCacheModel::height(int index) const
|
float PixmapCacheModel::relativeHeight(int index) const
|
||||||
{
|
{
|
||||||
Q_D(const PixmapCacheModel);
|
Q_D(const PixmapCacheModel);
|
||||||
if (d->data[index].pixmapEventType == PixmapCacheCountChanged)
|
if (d->data[index].pixmapEventType == PixmapCacheCountChanged)
|
||||||
|
@@ -61,7 +61,7 @@ public:
|
|||||||
int row(int index) const;
|
int row(int index) const;
|
||||||
int eventId(int index) const;
|
int eventId(int index) const;
|
||||||
QColor color(int index) const;
|
QColor color(int index) const;
|
||||||
float height(int index) const;
|
float relativeHeight(int index) const;
|
||||||
|
|
||||||
QVariantList labels() const;
|
QVariantList labels() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user