QmlDesigner: Disable caching for form editor items

This just wastes memory. We already cache the content in a pixmap.
Anything we render on top is cheap.

Change-Id: Ieecb689aa001ec8948b76c454e0b5217ff20be4f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-03-10 10:03:08 +01:00
committed by Tim Jenssen
parent 970510c181
commit a6985eaa85

View File

@@ -54,7 +54,7 @@ FormEditorItem::FormEditorItem(const QmlItemNode &qmlItemNode, FormEditorScene*
m_isContentVisible(true),
m_isFormEditorVisible(true)
{
setCacheMode(QGraphicsItem::DeviceCoordinateCache);
setCacheMode(QGraphicsItem::NoCache);
setup();
}