From cca61d66e71c3d6948db1a881267385ff294eb4e Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Tue, 3 Jun 2014 14:19:14 +0200 Subject: Make QQuickRenderControl usable (still private) QQuickRenderControl needs a QQuickWindow in order to function. This required the use of a private QQuickWindow constructor, meaning that only friend classes of QQuickWindow could use QQuickRenderControl. This change adds a factory function, QQuickRenderControl::createOffscreenWindow(). Task-number: QTBUG-38996 Change-Id: I92f6f1f60045934f3dd33c300352247852463c73 Reviewed-by: Gunnar Sletta --- src/quick/items/qquickrendercontrol_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/items/qquickrendercontrol_p.h') diff --git a/src/quick/items/qquickrendercontrol_p.h b/src/quick/items/qquickrendercontrol_p.h index e7b7759afa..cc30e37724 100644 --- a/src/quick/items/qquickrendercontrol_p.h +++ b/src/quick/items/qquickrendercontrol_p.h @@ -63,6 +63,7 @@ public: ~QQuickRenderControl(); QQuickWindow *window() const; + QQuickWindow *createOffscreenWindow(); virtual QWindow *renderWindow(QPoint *offset) { Q_UNUSED(offset); return 0; } static QWindow *renderWindowFor(QQuickWindow *win, QPoint *offset = 0); -- cgit v1.2.3