QmlProfiler: Rename QmlProfilerDetailsRewriter::clearRequests to clear

It also clears the lookup cache.

Change-Id: I9fdd9136084a17f427336d6ce2d37d724b9b20d2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2017-08-14 14:39:17 +02:00
parent 65c11e43df
commit 6a626595dc
3 changed files with 3 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ void QmlProfilerDetailsRewriter::disconnectQmlModel()
}
}
void QmlProfilerDetailsRewriter::clearRequests()
void QmlProfilerDetailsRewriter::clear()
{
m_filesCache.clear();
m_pendingEvents.clear();

View File

@@ -42,7 +42,7 @@ class QmlProfilerDetailsRewriter : public QObject
public:
explicit QmlProfilerDetailsRewriter(QObject *parent = nullptr);
void clearRequests();
void clear();
void requestDetailsForLocation(int typeId, const QmlEventLocation &location);
QString getLocalFile(const QString &remoteFile);
void reloadDocuments();

View File

@@ -692,7 +692,7 @@ void QmlProfilerModelManager::clear()
else
emit error(tr("Cannot open temporary trace file to store events."));
d->eventTypes.clear();
d->detailsRewriter->clearRequests();
d->detailsRewriter->clear();
d->traceTime->clear();
d->notesModel->clear();
setVisibleFeatures(0);