diff options
author | Christian Strømme <christian.stromme@theqtcompany.com> | 2015-03-30 14:14:00 +0200 |
---|---|---|
committer | Christian Stromme <christian.stromme@theqtcompany.com> | 2015-04-13 20:28:00 +0000 |
commit | b902f540cda4bb523297a7a5c59520be06f30a1a (patch) | |
tree | 434fd73ec701e0d85e6009f0affd8f0471a8d506 /src/quickwidgets/qquickwidget_p.h | |
parent | 1bff3496b172b041fcedbef0893c1d0de6c4fbc5 (diff) |
Match the offscreen windows position to the QQuickWidget position.
The position of the offscreen window would always be set to 0,0,
making it impossible to get the actual position of the scene.
With this change, it will be possible for child windows or items
in the scene to correctly calculate their global position.
Change-Id: Ibd3ff03880209047776e86ad889b40cbf79c3e6e
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/quickwidgets/qquickwidget_p.h')
-rw-r--r-- | src/quickwidgets/qquickwidget_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget_p.h b/src/quickwidgets/qquickwidget_p.h index c16ce2fece..6a5601e479 100644 --- a/src/quickwidgets/qquickwidget_p.h +++ b/src/quickwidgets/qquickwidget_p.h @@ -73,6 +73,7 @@ public: void itemGeometryChanged(QQuickItem *item, const QRectF &newGeometry, const QRectF &oldGeometry); void initResize(); void updateSize(); + void updatePosition(); void updateFrambufferObjectSize(); void setRootObject(QObject *); void render(bool needsSync); |