QmlProfiler: fix selection propagation from event view to timeline

The event view deals in type ids and the timeline view has to handle
selection by type id. Using the coincidence that typeId == selectionId
in the cases we're interested in is ugly.

Change-Id: I6f94ccd2c3945d5901d0a225deee7de077bfce58
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-10-28 12:56:53 +01:00
committed by Ulf Hermann
parent 936480316f
commit 4ec75995f8
10 changed files with 67 additions and 41 deletions

View File

@@ -289,9 +289,9 @@ QVariantMap TimelineModelAggregator::location(int modelIndex, int index) const
return d->modelList[modelIndex]->location(index);
}
bool TimelineModelAggregator::isSelectionIdValid(int modelIndex, int typeIndex) const
bool TimelineModelAggregator::handlesTypeId(int modelIndex, int typeIndex) const
{
return d->modelList[modelIndex]->isSelectionIdValid(typeIndex);
return d->modelList[modelIndex]->handlesTypeId(typeIndex);
}
int TimelineModelAggregator::selectionIdForLocation(int modelIndex, const QString &filename,