Implemented QWidget's move() vs setGeometry() distinction in QWindow.
authorSamuel Rødal <samuel.rodal@nokia.com>
Thu, 22 Sep 2011 12:37:58 +0000 (14:37 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Sep 2011 09:31:21 +0000 (11:31 +0200)
commit0bc19b49975bc82185aa24857f2a921584c9684f
tree7c4dbb914ebc0e40588d083171bba3de2fc65970
parent294df24621ddd4e08ca792cd8e541dcc84409acb
Implemented QWidget's move() vs setGeometry() distinction in QWindow.

QWidget's move() sets the position of the window including the window
frame, unlike setGeometry(). There was no equivalent for this in
QWindow, so several QWidget auto-tests were failing. Now we add
setFramePos() to achieve the same purpose in QWindow.

This fixes tst_QWidget::windowState(), which uses move().

Change-Id: I9a3e558bd615a8f0234cc3dd94fbb2bf5ecbc148
Reviewed-on: http://codereview.qt-project.org/5405
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/kernel/qwindow.cpp
src/gui/kernel/qwindow.h
src/gui/kernel/qwindow_p.h
src/plugins/platforms/xcb/qxcbwindow.cpp
src/widgets/kernel/qwidget_qpa.cpp
tests/auto/qwindow/tst_qwindow.cpp