From e2b94040e6438af537bf49f73194b06072d9b518 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 7 Sep 2012 22:27:58 +0200 Subject: [PATCH] intersect the clip rect when painting --- widgets/signalplotter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/signalplotter.cpp b/widgets/signalplotter.cpp index a5646062a..8e9e2941d 100644 --- a/widgets/signalplotter.cpp +++ b/widgets/signalplotter.cpp @@ -682,7 +682,7 @@ void SignalPlotter::drawWidget(QPainter *p, uint w, uint height, int horizontalS drawTopBarContents(p, separatorX, topBarWidth, top -1); } - p->setClipRect(0, top, w, h); + p->setClipRect(0, top, w, h, Qt::IntersectClip); // Draw scope-like grid vertical lines if (d->verticalLinesScroll && d->showVerticalLines && w > 60) { drawVerticalLines(p, top, w, h);