forked from qt-creator/qt-creator
QmlProfiler: Reset the zoom control only when we're finished loading
Drop the timeChanged signal of QmlProfilerTraceTime, too, as that doesn't serve a purpose anymore. We don't want intermittent changes of the trace time to be reflected in the UI when loading. Change-Id: I85f18b90fc404ec254c68625104d3e3f9077a1d9 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -93,7 +93,6 @@ void QmlProfilerTraceTime::setTime(qint64 startTime, qint64 endTime)
|
||||
if (startTime != m_startTime || endTime != m_endTime) {
|
||||
m_startTime = startTime;
|
||||
m_endTime = endTime;
|
||||
emit timeChanged(startTime, endTime);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +104,6 @@ void QmlProfilerTraceTime::decreaseStartTime(qint64 time)
|
||||
m_endTime = m_startTime;
|
||||
else
|
||||
QTC_ASSERT(m_endTime >= m_startTime, m_endTime = m_startTime);
|
||||
emit timeChanged(time, m_endTime);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +115,6 @@ void QmlProfilerTraceTime::increaseEndTime(qint64 time)
|
||||
m_startTime = m_endTime;
|
||||
else
|
||||
QTC_ASSERT(m_endTime >= m_startTime, m_startTime = m_endTime);
|
||||
emit timeChanged(m_startTime, time);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user