Commit 617ffe73 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

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: default avatarDaniel Teske <>
parent d57bb243
...@@ -86,9 +86,9 @@ void QmlProfilerDataState::setState(QmlProfilerDataState::State state) ...@@ -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)
{ {
} }
QmlProfilerTraceTime::~QmlProfilerTraceTime() QmlProfilerTraceTime::~QmlProfilerTraceTime()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment