QmlProfiler: Add some consistency to input events model

Methods that are public in the base class should also be public in the
derived class. Also, the accepted() method takes a type, not an event.

Change-Id: I086d382ffc2e71c7efda56b0dbf341942986582c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-06-02 14:56:32 +02:00
parent b4462c2553
commit c3a873b906
2 changed files with 8 additions and 9 deletions

View File

@@ -167,10 +167,10 @@ void InputEventsModel::clear()
QmlProfilerTimelineModel::clear();
}
bool InputEventsModel::accepted(const QmlEventType &event) const
bool InputEventsModel::accepted(const QmlEventType &type) const
{
return QmlProfilerTimelineModel::accepted(event) &&
(event.detailType == Mouse || event.detailType == Key);
return QmlProfilerTimelineModel::accepted(type) &&
(type.detailType == Mouse || type.detailType == Key);
}
InputEventsModel::InputEvent::InputEvent(InputEventType type, int a, int b) :