Commit 09908655 authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Remove acceptedEventTypes property from flame graph model

It is unused.

Change-Id: I4c2cb02f21ca564d5b783c46b6cce7c4ac8223e5
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 794165d5
......@@ -58,19 +58,6 @@ FlameGraphModel::FlameGraphModel(QmlProfilerModelManager *modelManager,
modelManager->announceFeatures(m_modelId, QmlDebug::Constants::QML_JS_RANGE_FEATURES);
}
void FlameGraphModel::setEventTypeAccepted(QmlDebug::RangeType type, bool accepted)
{
if (accepted && !m_acceptedTypes.contains(type))
m_acceptedTypes << type;
else if (!accepted && m_acceptedTypes.contains(type))
m_acceptedTypes.removeOne(type);
}
bool FlameGraphModel::eventTypeAccepted(QmlDebug::RangeType type) const
{
return m_acceptedTypes.contains(type);
}
void FlameGraphModel::clear()
{
m_modelManager->modelProxyCountUpdated(m_modelId, 0, 1);
......
......@@ -73,9 +73,6 @@ public:
FlameGraphModel(QmlProfilerModelManager *modelManager, QObject *parent = 0);
void setEventTypeAccepted(QmlDebug::RangeType type, bool accepted);
bool eventTypeAccepted(QmlDebug::RangeType) const;
QModelIndex index(int row, int column, const QModelIndex &parent) const override;
QModelIndex parent(const QModelIndex &child) const override;
Q_INVOKABLE int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
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