forked from qt-creator/qt-creator
QmlProfiler: remove now superfluous processingDone method
This detour existed to ensure that the V8 model and the events model are done processing before we call complete. Change-Id: I89b3ec7935e63e8cbcdeaff74d407064456c07be Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
@@ -96,7 +96,7 @@ void QmlProfilerBaseModel::detailsDone()
|
|||||||
emit changed();
|
emit changed();
|
||||||
d->processingDone = true;
|
d->processingDone = true;
|
||||||
d->modelManager->modelProxyCountUpdated(d->modelId, isEmpty() ? 0 : 1, 1);
|
d->modelManager->modelProxyCountUpdated(d->modelId, isEmpty() ? 0 : 1, 1);
|
||||||
d->modelManager->modelProcessingDone();
|
d->modelManager->complete();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -341,13 +341,6 @@ void QmlProfilerModelManager::complete()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerModelManager::modelProcessingDone()
|
|
||||||
{
|
|
||||||
Q_ASSERT(state() == QmlProfilerDataState::ProcessingData);
|
|
||||||
if (d->model->processingDone())
|
|
||||||
complete();
|
|
||||||
}
|
|
||||||
|
|
||||||
void QmlProfilerModelManager::save(const QString &filename)
|
void QmlProfilerModelManager::save(const QString &filename)
|
||||||
{
|
{
|
||||||
QFile *file = new QFile(filename);
|
QFile *file = new QFile(filename);
|
||||||
|
@@ -150,7 +150,6 @@ public slots:
|
|||||||
qint64 ndata1, qint64 ndata2, qint64 ndata3, qint64 ndata4, qint64 ndata5);
|
qint64 ndata1, qint64 ndata2, qint64 ndata3, qint64 ndata4, qint64 ndata5);
|
||||||
|
|
||||||
void complete();
|
void complete();
|
||||||
void modelProcessingDone();
|
|
||||||
|
|
||||||
void save(const QString &filename);
|
void save(const QString &filename);
|
||||||
void load(const QString &filename);
|
void load(const QString &filename);
|
||||||
|
Reference in New Issue
Block a user