QmlProfiler: Remove acceptedEventTypes property from flame graph model

It is unused.

Change-Id: I4c2cb02f21ca564d5b783c46b6cce7c4ac8223e5
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-04-29 12:48:29 +02:00
parent 794165d5db
commit 09908655e1
2 changed files with 0 additions and 16 deletions

View File

@@ -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);

View File

@@ -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;