forked from qt-creator/qt-creator
QmlProfiler: rename relative height of timeline items to "relativeHeight"
This clarifies that the item height is not absolute but relative to the row height, and it reduces the ambiguity of the various "height" methods. Change-Id: I391441147c88b47a14e539fc3853702bb517d27b Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -66,7 +66,7 @@ function drawData(canvas, ctxt)
|
||||
|
||||
xx = Math.round(xx);
|
||||
|
||||
var itemHeight = qmlProfilerModelProxy.height(modelIndex,ii) * blockHeight;
|
||||
var itemHeight = qmlProfilerModelProxy.relativeHeight(modelIndex, ii) * blockHeight;
|
||||
var yy = (modelIndex + 1) * blockHeight - itemHeight ;
|
||||
|
||||
ctxt.fillStyle = qmlProfilerModelProxy.color(modelIndex, ii);
|
||||
|
||||
Reference in New Issue
Block a user