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