From 7f2912b0367990cd975c41c233b594373b845783 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 23 Mar 2018 12:31:51 +0100 Subject: [PATCH] QmlProfiler: Rename method in statistics model dataChanged() was too generic and easily confused with other methods. Change-Id: I68b8bcb609599e56a1a2d3c6cf53d878281f7818 Reviewed-by: Tobias Hunger --- src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 4 ++-- src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index a28647cbd0f..96115309b2d 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -68,7 +68,7 @@ QmlProfilerStatisticsModel::QmlProfilerStatisticsModel(QmlProfilerModelManager * : m_modelManager(modelManager) { connect(modelManager, &QmlProfilerModelManager::stateChanged, - this, &QmlProfilerStatisticsModel::dataChanged); + this, &QmlProfilerStatisticsModel::modelManagerStateChanged); connect(modelManager->notesModel(), &Timeline::TimelineNotesModel::changed, this, &QmlProfilerStatisticsModel::notesChanged); modelManager->registerModelProxy(); @@ -214,7 +214,7 @@ void QmlProfilerStatisticsModel::setRelativesModel(QmlProfilerStatisticsRelative m_calleesModel = relative; } -void QmlProfilerStatisticsModel::dataChanged() +void QmlProfilerStatisticsModel::modelManagerStateChanged() { if (m_modelManager->state() == QmlProfilerModelManager::ClearingData) clear(); diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h index 673bf23372b..af53a566804 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h @@ -126,7 +126,7 @@ private: void loadEvent(const QmlEvent &event, const QmlEventType &type); void finalize(); - void dataChanged(); + void modelManagerStateChanged(); void notesChanged(int typeIndex); QVector m_data;