aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2015-08-31 18:00:24 +0200
committerUlf Hermann <[email protected]>2015-09-01 10:17:17 +0000
commit1caa899b8df94b075dfc2012c7a6ceb679639f9b (patch)
tree778a159d482ee3b05921173d4caecc3973037fce /src/plugins/qmlprofiler/qmlprofilertraceview.cpp
parent599c5a034af0aa1f786e379cbaba67d2e3e3c8fa (diff)
QmlProfiler: Make sure timeChanged() signal is queued when needed
It can be triggered from a thread loading trace data. This triggered the warnings about QObject::startTimer and QObject::killTimer and was generelly unsafe. Change-Id: Iee1f5f29a49147a20b1f5c826f85b6713fcb8a45 Reviewed-by: Joerg Bornemann <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertraceview.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertraceview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
index 4ecf40480e1..32762d92030 100644
--- a/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertraceview.cpp
@@ -97,7 +97,7 @@ QmlProfilerTraceView::QmlProfilerTraceView(QWidget *parent, QmlProfilerTool *pro
d->m_zoomControl = new Timeline::TimelineZoomControl(this);
connect(modelManager->traceTime(), &QmlProfilerTraceTime::timeChanged,
- [this](qint64 start, qint64 end) {
+ this, [this](qint64 start, qint64 end) {
d->m_zoomControl->setTrace(start, end);
d->m_zoomControl->setRange(start, start + (end - start) / 10);
});