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