diff options
author | Paul Olav Tvete <paul.tvete@digia.com> | 2014-06-03 14:19:14 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-03 14:46:59 +0200 |
commit | cca61d66e71c3d6948db1a881267385ff294eb4e (patch) | |
tree | e4ac8f3aa118c3ab382c6ea0004a018c5c251a5d /src/quick/items/qquickrendercontrol_p.h | |
parent | 6e9b406fefe7fe3147587d573f1763c906682f5e (diff) |
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 <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/items/qquickrendercontrol_p.h')
-rw-r--r-- | src/quick/items/qquickrendercontrol_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |