forked from qt-creator/qt-creator
QmlProfiler: Remove accepted() methods
The only place where we used them was handlesTypeId(), and there it was wrong. Each QmlProfilerTimelineModel has exactly one main feature it subscribes to. It might additionally accept events of some auxiliary features for context, but it doesn't really "handle" the respective types in the sense that you could, for example, attach notes to them. Therefore, just checking for the main feature is the right thing to do. Change-Id: If0c00444084b957f3b99d3456cdbf703ae4afc3d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -55,11 +55,6 @@ void QmlProfilerAnimationsModel::clear()
|
||||
QmlProfilerTimelineModel::clear();
|
||||
}
|
||||
|
||||
bool QmlProfilerAnimationsModel::accepted(const QmlEventType &type) const
|
||||
{
|
||||
return QmlProfilerTimelineModel::accepted(type) && type.detailType() == AnimationFrame;
|
||||
}
|
||||
|
||||
void QmlProfilerAnimationsModel::loadEvent(const QmlEvent &event, const QmlEventType &type)
|
||||
{
|
||||
Q_UNUSED(type);
|
||||
|
||||
Reference in New Issue
Block a user