Commit acc4d1a4 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Implement TimelineModelAggregator::clear()



Change-Id: I3c300a1ebc2286e0ac5d281f29dbffeb5259e62e
Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
parent eb9cbd5e
......@@ -95,6 +95,15 @@ TimelineNotesModel *TimelineModelAggregator::notes() const
return d->notesModel;
}
void TimelineModelAggregator::clear()
{
qDeleteAll(d->modelList);
d->modelList.clear();
if (d->notesModel)
d->notesModel->clear();
emit modelsChanged();
}
int TimelineModelAggregator::modelOffset(int modelIndex) const
{
int ret = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment