Propagate textureChildSeen properly

even if setParent() is not called afterwards.

Change-Id: Ie54e227c7adda2710fbd46176e9a15252aef2985
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
Laszlo Agocs 2014-03-31 18:16:00 +02:00 committed by The Qt Project
parent ebd8530cbc
commit c4aabeb2b8

View File

@ -628,7 +628,7 @@ public:
#ifndef QT_NO_OPENGL
virtual GLuint textureId() const { return 0; }
void setRenderToTexture() { renderToTexture = true; textureChildSeen = true; }
void setRenderToTexture() { renderToTexture = true; setTextureChildSeen(); }
void setTextureChildSeen()
{
Q_Q(QWidget);