forked from qt-creator/qt-creator
Rename eventId to typeId and selectionId
Change-Id: Id28186a5e24c9b0f6f89142ba4c35d1a5a462852 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
||||
quint64 features() const;
|
||||
|
||||
int rowCount() const {return 0;}
|
||||
int eventId(int) const {return -1;}
|
||||
int selectionId(int) const {return -1;}
|
||||
QColor color(int) const {return QColor();}
|
||||
QVariantList labels() const {return QVariantList();}
|
||||
QVariantMap details(int) const {return QVariantMap();}
|
||||
|
@@ -69,7 +69,7 @@ int MemoryUsageModel::row(int index) const
|
||||
return 2;
|
||||
}
|
||||
|
||||
int MemoryUsageModel::eventId(int index) const
|
||||
int MemoryUsageModel::selectionId(int index) const
|
||||
{
|
||||
Q_D(const MemoryUsageModel);
|
||||
return d->data[index].type;
|
||||
@@ -77,7 +77,7 @@ int MemoryUsageModel::eventId(int index) const
|
||||
|
||||
QColor MemoryUsageModel::color(int index) const
|
||||
{
|
||||
return colorByEventId(index);
|
||||
return colorBySelectionId(index);
|
||||
}
|
||||
|
||||
float MemoryUsageModel::relativeHeight(int index) const
|
||||
|
@@ -54,7 +54,7 @@ public:
|
||||
int rowMaxValue(int rowNumber) const;
|
||||
|
||||
int row(int index) const;
|
||||
int eventId(int index) const;
|
||||
int selectionId(int index) const;
|
||||
QColor color(int index) const;
|
||||
float relativeHeight(int index) const;
|
||||
|
||||
|
@@ -106,11 +106,11 @@ int PixmapCacheModel::row(int index) const
|
||||
{
|
||||
Q_D(const PixmapCacheModel);
|
||||
if (d->expanded)
|
||||
return eventId(index) + 1;
|
||||
return selectionId(index) + 1;
|
||||
return d->data[index].rowNumberCollapsed;
|
||||
}
|
||||
|
||||
int PixmapCacheModel::eventId(int index) const
|
||||
int PixmapCacheModel::selectionId(int index) const
|
||||
{
|
||||
Q_D(const PixmapCacheModel);
|
||||
return d->data[index].pixmapEventType == PixmapCacheCountChanged ?
|
||||
@@ -123,7 +123,7 @@ QColor PixmapCacheModel::color(int index) const
|
||||
if (d->data[index].pixmapEventType == PixmapCacheCountChanged)
|
||||
return colorByHue(PixmapCacheCountHue);
|
||||
|
||||
return colorByEventId(index);
|
||||
return colorBySelectionId(index);
|
||||
}
|
||||
|
||||
float PixmapCacheModel::relativeHeight(int index) const
|
||||
|
@@ -59,7 +59,7 @@ public:
|
||||
int rowMaxValue(int rowNumber) const;
|
||||
|
||||
int row(int index) const;
|
||||
int eventId(int index) const;
|
||||
int selectionId(int index) const;
|
||||
QColor color(int index) const;
|
||||
float relativeHeight(int index) const;
|
||||
|
||||
|
@@ -126,7 +126,7 @@ int SceneGraphTimelineModel::row(int index) const
|
||||
return expanded() ? (d->data[index].stage + 1) : d->data[index].rowNumberCollapsed;
|
||||
}
|
||||
|
||||
int SceneGraphTimelineModel::eventId(int index) const
|
||||
int SceneGraphTimelineModel::selectionId(int index) const
|
||||
{
|
||||
Q_D(const SceneGraphTimelineModel);
|
||||
return d->data[index].stage;
|
||||
@@ -134,7 +134,7 @@ int SceneGraphTimelineModel::eventId(int index) const
|
||||
|
||||
QColor SceneGraphTimelineModel::color(int index) const
|
||||
{
|
||||
return colorByEventId(index);
|
||||
return colorBySelectionId(index);
|
||||
}
|
||||
|
||||
QVariantList SceneGraphTimelineModel::labels() const
|
||||
|
@@ -45,7 +45,7 @@ public:
|
||||
quint64 features() const;
|
||||
|
||||
int row(int index) const;
|
||||
int eventId(int index) const;
|
||||
int selectionId(int index) const;
|
||||
QColor color(int index) const;
|
||||
|
||||
QVariantList labels() const;
|
||||
|
Reference in New Issue
Block a user