Invalidate the scenegraph properly in the rendercontrol
authorLaszlo Agocs <laszlo.agocs@digia.com>
Tue, 5 Aug 2014 12:53:34 +0000 (14:53 +0200)
committerLaszlo Agocs <laszlo.agocs@digia.com>
Fri, 8 Aug 2014 07:58:00 +0000 (09:58 +0200)
commite823bb5aee09c8a9f4a11bfd9ab6c68d2a77e93e
tree2e75f21f09597681b4f2717410c352689adc7fb9
parentf14f713c2fd42e94abe55b8fc1b4dabffaa15fda
Invalidate the scenegraph properly in the rendercontrol

Taking the persistent flags from the QQuickWindow was a bad idea. These
are not applicable to the case when an application drives the scene via
QQuickRenderControl. Once stop() is called, all resources must be
released since the context itself will typically be destroyed afterwards.

This is a backport of 0b0bb319578bb2e2eced3a80ce3876a4408b72a7 in dev.

On top of this, stop() becomes invalidate() since the original
invalidate() function is never used by anyone. This naming is much cleaner
and is consistent with QSGContext and friends.

Task-number: QTBUG-40505
Task-number: QTBUG-40435
Change-Id: I398f1bda31f335c3508b238f0328305d3cd79ffd
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/items/qquickrendercontrol.cpp
src/quick/items/qquickrendercontrol_p.h
src/quickwidgets/qquickwidget.cpp
src/quickwidgets/qquickwidget_p.h