aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickwidgets/qquickwidget_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-09-11 13:04:49 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-09-23 12:24:44 +0200
commitedb6976120be9b8ad76b48ecd929f916dcdf216a (patch)
tree4fd54dde804b53ee01bc89ea44b2ae242e5059c5 /src/quickwidgets/qquickwidget_p.h
parenta76985eb05fcb7ecf9b22e5472d439585d4f2075 (diff)
Recreate the fbo on screen change in QQuickWidget when needed
Move the rendering code out into a separate function since it is now called from three places. Like in QOpenGLWidget, the FBO may need to be recreated with a different size in case the window is moved onto a screen with a different device pixel ratio. Change-Id: Iaaa42a06dab9e02710b0a7dafb0ea8c018b69ec2 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quickwidgets/qquickwidget_p.h')
-rw-r--r--src/quickwidgets/qquickwidget_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget_p.h b/src/quickwidgets/qquickwidget_p.h
index 2289b18d72..2ff9601f77 100644
--- a/src/quickwidgets/qquickwidget_p.h
+++ b/src/quickwidgets/qquickwidget_p.h
@@ -75,6 +75,7 @@ public:
void updateSize();
void updateFrambufferObjectSize();
void setRootObject(QObject *);
+ void render(bool needsSync);
void renderSceneGraph();
void createContext();
void destroyContext();