forked from qt-creator/qt-creator
QmlProfiler: Make sure the painter state is restored at some point.
By returning early from the method painting the binding loop markers painter states could be left on the stack, triggering error messages later. Change-Id: I0b9c336e44a28feec96c506d0e3d0da291054bbd Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -233,7 +233,7 @@ void TimelineRenderer::drawBindingLoopMarkers(QPainter *p, int modelIndex, int f
|
||||
int shadowoffset = 2;
|
||||
if ((yfrom + radius + shadowoffset < 0 && yto + radius + shadowoffset < 0) ||
|
||||
(yfrom - radius >= height() && yto - radius >= height()))
|
||||
return;
|
||||
break;
|
||||
|
||||
// shadow
|
||||
p->setPen(shadowPen);
|
||||
|
||||
Reference in New Issue
Block a user