QmlProfiler: When clearing, set the trace duration to 0

That is what the code in the main view expects of an empty trace and
it's also logically more coherent.

Task-number: QTCREATORBUG-11833
Change-Id: I78b90ca5332bfb004cabbb32c4eb3e7e83fd7187
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-03-25 16:59:33 +01:00
parent 7d23ee717d
commit 85b7d34ea8

View File

@@ -113,7 +113,7 @@ qint64 QmlProfilerTraceTime::duration() const
void QmlProfilerTraceTime::clear()
{
m_startTime = -1;
m_endTime = 0;
m_endTime = -1;
}
void QmlProfilerTraceTime::setStartTime(qint64 time)