From 90b67743d1bdcb6d98e7d10d2b304b500285ec58 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 24 Nov 2011 11:53:58 +0100 Subject: emit width/height changes for the new rect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I789a45bc60aaa949d18e9fb72a186a259548ec1d Reviewed-by: Samuel Rødal --- src/gui/kernel/qguiapplication.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 7e60689a2d..a329f99931 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -792,9 +792,9 @@ void QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePr window->d_func()->resizeEventPending = false; if (cr.width() != newRect.width()) - window->widthChanged(cr.width()); + window->widthChanged(newRect.width()); if (cr.height() != newRect.height()) - window->heightChanged(cr.height()); + window->heightChanged(newRect.height()); } if (isMove) { @@ -803,9 +803,9 @@ void QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePr QGuiApplication::sendSpontaneousEvent(window, &e); if (cr.x() != newRect.x()) - window->xChanged(cr.x()); + window->xChanged(newRect.x()); if (cr.y() != newRect.y()) - window->yChanged(cr.y()); + window->yChanged(newRect.y()); } } -- cgit v1.2.3