QmlProfiler: use correct row heights for binding loop markers

Change-Id: Id476d9be7c0b1a4fb7c8e5fffb2861441d369316
Task-number: QTCREATORBUG-13451
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-11-18 18:51:16 +01:00
parent 772ca7a654
commit 3d9c38f3ca

View File

@@ -282,14 +282,14 @@ void TimelineRenderer::drawBindingLoopMarkers(QPainter *p, int modelIndex, int f
// to // to
getItemXExtent(modelIndex, destindex, xto, width); getItemXExtent(modelIndex, destindex, xto, width);
xto += width / 2; xto += width / 2;
yto = getYPosition(modelIndex, destindex) + yto = getYPosition(modelIndex, destindex) + m_profilerModelProxy->rowHeight(modelIndex,
m_profilerModelProxy->rowHeight(modelIndex, destindex) / 2 - y(); m_profilerModelProxy->row(modelIndex, destindex)) / 2 - y();
// from // from
getItemXExtent(modelIndex, i, xfrom, width); getItemXExtent(modelIndex, i, xfrom, width);
xfrom += width / 2; xfrom += width / 2;
yfrom = getYPosition(modelIndex, i) + yfrom = getYPosition(modelIndex, i) + m_profilerModelProxy->rowHeight(modelIndex,
m_profilerModelProxy->rowHeight(modelIndex, i) / 2 - y(); m_profilerModelProxy->row(modelIndex, i)) / 2 - y();
// radius (derived from width of origin event) // radius (derived from width of origin event)
radius = 5; radius = 5;