forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
@@ -126,7 +126,7 @@ private:
|
||||
void loadEvent(const QmlEvent &event, const QmlEventType &type);
|
||||
void finalize();
|
||||
|
||||
void dataChanged();
|
||||
void modelManagerStateChanged();
|
||||
void notesChanged(int typeIndex);
|
||||
|
||||
QVector<QmlEventStats> m_data;
|
||||
|
Reference in New Issue
Block a user