forked from qt-creator/qt-creator
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:
@@ -58,19 +58,6 @@ FlameGraphModel::FlameGraphModel(QmlProfilerModelManager *modelManager,
|
|||||||
modelManager->announceFeatures(m_modelId, QmlDebug::Constants::QML_JS_RANGE_FEATURES);
|
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()
|
void FlameGraphModel::clear()
|
||||||
{
|
{
|
||||||
m_modelManager->modelProxyCountUpdated(m_modelId, 0, 1);
|
m_modelManager->modelProxyCountUpdated(m_modelId, 0, 1);
|
||||||
|
@@ -73,9 +73,6 @@ public:
|
|||||||
|
|
||||||
FlameGraphModel(QmlProfilerModelManager *modelManager, QObject *parent = 0);
|
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 index(int row, int column, const QModelIndex &parent) const override;
|
||||||
QModelIndex parent(const QModelIndex &child) const override;
|
QModelIndex parent(const QModelIndex &child) const override;
|
||||||
Q_INVOKABLE int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
Q_INVOKABLE int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
Reference in New Issue
Block a user