diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-03-28 16:06:07 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@digia.com> | 2014-04-02 16:46:53 +0200 |
commit | be1a94ef1f06780c52221a1c0ed1cf978cf6e1f4 (patch) | |
tree | 603294badc4962ca680b75d2b4249adc985e4a08 /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | |
parent | a0239e3e719910fba96beab7e28adf0468844566 (diff) | |
download | qt-creator-be1a94ef1f06780c52221a1c0ed1cf978cf6e1f4.tar.gz |
QmlProfiler: Keep an extra time window in ZoomControl
This window is dynamically sized so that no integer overflows can occur
when using it in the timeline view instead of the whole trace time.
Task-number: QTCREATORBUG-11879
Change-Id: Id86faaf614b5f833e47ce26bb859b63eb09e7547
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp index 17b894647e..4ec8c71ed0 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp @@ -112,18 +112,24 @@ qint64 QmlProfilerTraceTime::duration() const void QmlProfilerTraceTime::clear() { - m_startTime = -1; - m_endTime = -1; + setStartTime(-1); + setEndTime(-1); } void QmlProfilerTraceTime::setStartTime(qint64 time) { - m_startTime = time; + if (time != m_startTime) { + m_startTime = time; + emit startTimeChanged(time); + } } void QmlProfilerTraceTime::setEndTime(qint64 time) { - m_endTime = time; + if (time != m_endTime) { + m_endTime = time; + emit endTimeChanged(time); + } } |