diff options
author | Paul Olav Tvete <paul.tvete@digia.com> | 2014-03-06 13:57:39 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-07 16:55:12 +0100 |
commit | fdefb96476847a8fd8b7a074016b6de25f87eb95 (patch) | |
tree | ba86e527d0d8f64f4156a27893bcb8136fd8bde8 /src/quickwidgets/qquickwidget_p.h | |
parent | b287d58b3937160b30388f29410df0f14bb0d778 (diff) |
QQuickWidget: handle windowChange
When the toplevel window changes, QQuickWidget needs to recreate
the context so it is compatible with the new window.
Change-Id: Ic7c3410061a33f223e20e3d1f93437917abcff18
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quickwidgets/qquickwidget_p.h')
-rw-r--r-- | src/quickwidgets/qquickwidget_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quickwidgets/qquickwidget_p.h b/src/quickwidgets/qquickwidget_p.h index c75e5f08ad..1d0b4e1bbe 100644 --- a/src/quickwidgets/qquickwidget_p.h +++ b/src/quickwidgets/qquickwidget_p.h @@ -85,10 +85,12 @@ public: void setRootObject(QObject *); void renderSceneGraph(); void createContext(); + void destroyContext(); - GLuint textureId() const; + GLuint textureId() const Q_DECL_OVERRIDE; void init(QQmlEngine* e = 0); + void handleWindowChange(); QSize rootObjectSize() const; |