QmlProfiler: Avoid nondeterminism when creating trace time object

If start and end times are initialized by clear() the change signals
may or may not be sent.

Change-Id: Ib50a2bbecf58791c5f93348e7450f4c0324f9d90
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Ulf Hermann
2014-06-03 15:35:54 +02:00
parent d57bb24354
commit 617ffe7303

View File

@@ -86,9 +86,9 @@ void QmlProfilerDataState::setState(QmlProfilerDataState::State state)
/////////////////////////////////////////////////////////////////////
QmlProfilerTraceTime::QmlProfilerTraceTime(QObject *parent) : QObject(parent)
QmlProfilerTraceTime::QmlProfilerTraceTime(QObject *parent) :
QObject(parent), m_startTime(-1), m_endTime(-1)
{
clear();
}
QmlProfilerTraceTime::~QmlProfilerTraceTime()