diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-07-25 11:33:04 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2017-07-25 12:03:29 +0000 |
commit | 5be8445f112b6b652c4c54227e8efa0f6b64cdd1 (patch) | |
tree | ccd60dc7221fe7cd2d6d8fe7496a056c163368c0 /src/gui | |
parent | 185d87708bb68c1c88d97304152fcccc31501048 (diff) |
doc: minor cleanup in QPlatformWindow::setGeometry()
This patch amends a4c8129.
This is more consistent with other parts in QPlatformWindow docs.
Change-Id: I26d7a91849f3fde3ab2a0f3c81e00a5f9c830707
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qplatformwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformwindow.cpp b/src/gui/kernel/qplatformwindow.cpp index 5ece421ea5..ae39411729 100644 --- a/src/gui/kernel/qplatformwindow.cpp +++ b/src/gui/kernel/qplatformwindow.cpp @@ -122,11 +122,12 @@ QSurfaceFormat QPlatformWindow::format() const implementation of this function in any override of QPlatformWindow::setGeometry(), as QWindow::geometry() is expected to report back the set geometry until a confirmation (or rejection) of the new geometry comes back from the window manager and is reported - via handleGeometryChange(). + via QWindowSystemInterface::handleGeometryChange(). Window move/resizes can also be triggered spontaneously by the window manager, or as a response to an earlier requested move/resize via the Qt APIs. There is no need to call - this function from the window manager callback, instead call QPA::handleGeometryChange. + this function from the window manager callback, instead call + QWindowSystemInterface::handleGeometryChange(). 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 |