forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user