Commit 3382efb7 authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Center the binding loop marker on events in overview

Change-Id: If16ee4335b40e6ee611f04032246620ecf29f2db
Task-number: QTCREATORBUG-13453
Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
parent c35a3ab3
......@@ -81,7 +81,7 @@ function drawBindingLoops(canvas, ctxt) {
ii += canvas.increment) {
if (qmlProfilerModelProxy.bindingLoopDest(modelIndex,ii) >= 0) {
var xcenter = Math.round(qmlProfilerModelProxy.startTime(modelIndex,ii) +
qmlProfilerModelProxy.duration(modelIndex,ii) -
qmlProfilerModelProxy.duration(modelIndex,ii) / 2 -
qmlProfilerModelProxy.traceStartTime()) * spacing;
var ycenter = Math.round(canvas.bump + canvas.blockHeight * modelIndex +
canvas.blockHeight / 2);
......
Markdown is supported
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