diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2012-11-09 17:08:46 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-02-27 23:55:42 +0100 |
commit | e123056c47e33759e740ea2e25771e0cc1899c13 (patch) | |
tree | 7c7973fc60b919ea2daadc51c8ca37861ed69835 /src/concurrent/qtconcurrentiteratekernel.h | |
parent | 3d81b43aa462c66e11f772398550e76ce4cee6de (diff) |
iOS: Implement QIOSWindow::setGeometry() and pick up UIView geometry changes
The best way to pick up geometry changes of the UIView seems to be to override
layoutSubviews(), but that will only be called if the size of the UIView
changes, not when the position (center) changes. This means that the position
reflected by the QWindow will not always be in sync with the position of the
native UIView. Fortunately the position of a QWindow is not used for anything
critical in Qt itself.
Another issue is that the frame property of a UIView is only valid if the
transform of the UIView is set to the identity transform. We try to catch
cases where this is not the case, and warn the user about this. We could
in theory react to changes in the UIView geometry by only updating the
size, since this is also reflected through the bounds property of the
UIView. This is left for when we know more about how these things
interact in practice.
Change-Id: I079162c059d377a77569fe3974e261d2e0671fd5
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/concurrent/qtconcurrentiteratekernel.h')
0 files changed, 0 insertions, 0 deletions