forked from qt-creator/qt-creator
QmlProfiler: Eliminate ambiguity from TimelineModelAggregator::count()
It wasn't helpful that this method could either count all events or only the events from a specific model. Change-Id: I09dcb37edd3403a23f6ee9008fc71b6761aa9e26 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -122,15 +122,7 @@ QVariantList TimelineModelAggregator::models() const
|
||||
|
||||
int TimelineModelAggregator::count(int modelIndex) const
|
||||
{
|
||||
if (modelIndex == -1) {
|
||||
int totalCount = 0;
|
||||
foreach (const AbstractTimelineModel *modelProxy, d->modelList)
|
||||
totalCount += modelProxy->count();
|
||||
|
||||
return totalCount;
|
||||
} else {
|
||||
return d->modelList[modelIndex]->count();
|
||||
}
|
||||
return d->modelList[modelIndex]->count();
|
||||
}
|
||||
|
||||
bool TimelineModelAggregator::isEmpty() const
|
||||
|
||||
Reference in New Issue
Block a user