diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2012-02-17 16:58:09 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-20 15:17:08 +0100 |
commit | b0a803213ebd1f7bdf9c40070e14a209d96b7e2f (patch) | |
tree | 89e739bec9c031ad89630c6ea1e90696b7318850 /src/gui/kernel/qplatformwindow_qpa.cpp | |
parent | 49b08f96e824f49fab9aa5c9a1a0ed582d4558bb (diff) |
Added note in QPlatformWindow::setGeometry() docs about position policy.
Change-Id: I0ac76b7aac1aa717592c34f414b1dd8fbee92be2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformwindow_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformwindow_qpa.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow_qpa.cpp b/src/gui/kernel/qplatformwindow_qpa.cpp index f3f0a55862..e12228d7bd 100644 --- a/src/gui/kernel/qplatformwindow_qpa.cpp +++ b/src/gui/kernel/qplatformwindow_qpa.cpp @@ -114,6 +114,10 @@ QSurfaceFormat QPlatformWindow::format() const can happen programatically(from ie. user application) or by the window manager. This means that there is no need to call this function specifically from the window manager callback, instead call QWindowSystemInterface::handleGeometryChange(QWindow *w, const QRect &newRect); + + The position(x, y) part of the rect might be inclusive or exclusive of the window frame + as returned by frameMargins(). You can detect this in the plugin by checking + qt_window_private(window())->positionPolicy. */ void QPlatformWindow::setGeometry(const QRect &rect) { |