forked from qt-creator/qt-creator
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:
@@ -282,14 +282,14 @@ void TimelineRenderer::drawBindingLoopMarkers(QPainter *p, int modelIndex, int f
|
||||
// to
|
||||
getItemXExtent(modelIndex, destindex, xto, width);
|
||||
xto += width / 2;
|
||||
yto = getYPosition(modelIndex, destindex) +
|
||||
m_profilerModelProxy->rowHeight(modelIndex, destindex) / 2 - y();
|
||||
yto = getYPosition(modelIndex, destindex) + m_profilerModelProxy->rowHeight(modelIndex,
|
||||
m_profilerModelProxy->row(modelIndex, destindex)) / 2 - y();
|
||||
|
||||
// from
|
||||
getItemXExtent(modelIndex, i, xfrom, width);
|
||||
xfrom += width / 2;
|
||||
yfrom = getYPosition(modelIndex, i) +
|
||||
m_profilerModelProxy->rowHeight(modelIndex, i) / 2 - y();
|
||||
yfrom = getYPosition(modelIndex, i) + m_profilerModelProxy->rowHeight(modelIndex,
|
||||
m_profilerModelProxy->row(modelIndex, i)) / 2 - y();
|
||||
|
||||
// radius (derived from width of origin event)
|
||||
radius = 5;
|
||||
|
||||
Reference in New Issue
Block a user