diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2014-07-19 23:28:54 +0200 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2014-07-21 11:00:48 +0200 |
commit | 3a71c9700fbef984dd2a59edb442d71f4a5b60b0 (patch) | |
tree | 2c1adf929081fdfd894b39f6b105ba55554e184e /src | |
parent | 4a0b046fc87a60bbbb037125a2eb31ae3548d34d (diff) |
Fix contentsRect calculation.
QRectF takes either two points (top left / bottom right),
or separate coordinates (x/y) together with dimensions for width
and height.
Change-Id: Iac20e2abaa4a273ddf7605ffa306220717ae283a
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/webengine/render_widget_host_view_qt_delegate_quick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webengine/render_widget_host_view_qt_delegate_quick.cpp b/src/webengine/render_widget_host_view_qt_delegate_quick.cpp index e37a07960..d215fefc4 100644 --- a/src/webengine/render_widget_host_view_qt_delegate_quick.cpp +++ b/src/webengine/render_widget_host_view_qt_delegate_quick.cpp @@ -94,7 +94,7 @@ QRectF RenderWidgetHostViewQtDelegateQuick::contentsRect() const { QPointF scenePoint = mapToScene(QPointF(0, 0)); QPointF screenPos = window()->mapToGlobal(scenePoint.toPoint()); - return QRectF(screenPos, QPointF(width(), height())); + return QRectF(screenPos.x(), screenPos.y(), width(), height()); } void RenderWidgetHostViewQtDelegateQuick::setKeyboardFocus() |