QmlProfiler: Deduplicate color selection and saturate colors some more

The original timeline colors are hard to see on certain devices. This
makes them stand out more from the background.

Change-Id: Icf6ef8a8ea360b7f47609f8673c4c6e22b091296
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Ulf Hermann
2014-02-26 17:42:04 +01:00
parent 998bb89739
commit 64af5c12e0
3 changed files with 25 additions and 3 deletions

View File

@@ -373,8 +373,7 @@ int BasicTimelineModel::getBindingLoopDest(int index) const
QColor BasicTimelineModel::getColor(int index) const
{
int ndx = getEventId(index);
return QColor::fromHsl((ndx*25)%360, 76, 166);
return getEventColor(index);
}
const QVariantList BasicTimelineModel::getLabelsForCategory(int category) const