QmlProfiler: Center the binding loop marker on events in overview

Change-Id: If16ee4335b40e6ee611f04032246620ecf29f2db
Task-number: QTCREATORBUG-13453
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-11-19 11:48:28 +01:00
parent c35a3ab344
commit 3382efb71e

View File

@@ -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);