forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user