QmlProfiler: Rename method in statistics model

dataChanged() was too generic and easily confused with other methods.

Change-Id: I68b8bcb609599e56a1a2d3c6cf53d878281f7818
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Ulf Hermann
2018-03-23 12:31:51 +01:00
parent 7943dfb5a6
commit 7f2912b036
2 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ QmlProfilerStatisticsModel::QmlProfilerStatisticsModel(QmlProfilerModelManager *
: m_modelManager(modelManager) : m_modelManager(modelManager)
{ {
connect(modelManager, &QmlProfilerModelManager::stateChanged, connect(modelManager, &QmlProfilerModelManager::stateChanged,
this, &QmlProfilerStatisticsModel::dataChanged); this, &QmlProfilerStatisticsModel::modelManagerStateChanged);
connect(modelManager->notesModel(), &Timeline::TimelineNotesModel::changed, connect(modelManager->notesModel(), &Timeline::TimelineNotesModel::changed,
this, &QmlProfilerStatisticsModel::notesChanged); this, &QmlProfilerStatisticsModel::notesChanged);
modelManager->registerModelProxy(); modelManager->registerModelProxy();
@@ -214,7 +214,7 @@ void QmlProfilerStatisticsModel::setRelativesModel(QmlProfilerStatisticsRelative
m_calleesModel = relative; m_calleesModel = relative;
} }
void QmlProfilerStatisticsModel::dataChanged() void QmlProfilerStatisticsModel::modelManagerStateChanged()
{ {
if (m_modelManager->state() == QmlProfilerModelManager::ClearingData) if (m_modelManager->state() == QmlProfilerModelManager::ClearingData)
clear(); clear();

View File

@@ -126,7 +126,7 @@ private:
void loadEvent(const QmlEvent &event, const QmlEventType &type); void loadEvent(const QmlEvent &event, const QmlEventType &type);
void finalize(); void finalize();
void dataChanged(); void modelManagerStateChanged();
void notesChanged(int typeIndex); void notesChanged(int typeIndex);
QVector<QmlEventStats> m_data; QVector<QmlEventStats> m_data;