emit width/height changes for the new rect

Change-Id: I789a45bc60aaa949d18e9fb72a186a259548ec1d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Gunnar Sletta 2011-11-24 11:53:58 +01:00 committed by Qt by Nokia
parent 290c4f8988
commit 90b67743d1

View File

@ -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());
}
}