Skip to content

Commit fed7ced

Browse files
committed
Try to fix graphics artefacts
1 parent bcc176e commit fed7ced

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/FlowView.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ FlowView(QWidget *parent)
4040

4141
setBackgroundBrush(flowViewStyle.BackgroundColor);
4242

43-
//setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
44-
//setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate);
4543
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
4644
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
4745

4846
setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
4947

5048
setCacheMode(QGraphicsView::CacheBackground);
49+
setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
5150

5251
//setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
5352
}

0 commit comments

Comments
 (0)