Skip to content
Snippets Groups Projects
Commit 60a4d2aa authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.FormEditor: Fix painting of the background

Caching of the QGraphicsView is broken.

Task-number: QTCREATORBUG-5258
Change-Id: I7db2bff4809b592aaccfa74c37a3212edb29d403
Reviewed-on: http://codereview.qt.nokia.com/1239


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
parent 7d4194d9
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,7 @@ FormEditorGraphicsView::FormEditorGraphicsView(QWidget *parent) :
setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
setResizeAnchor(QGraphicsView::AnchorViewCenter);
setAlignment(Qt::AlignCenter);
setCacheMode(QGraphicsView::CacheBackground);
// setCacheMode(QGraphicsView::CacheBackground);
setCacheMode(QGraphicsView::CacheNone);
setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate);
setOptimizationFlags(QGraphicsView::DontSavePainterState);
// setViewportUpdateMode(QGraphicsView::NoViewportUpdate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment