diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-07-03 16:47:49 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-07-04 22:08:12 +0200 |
| commit | 31ec108dd08d6381a15e49b6fbec9337705c3b2a (patch) | |
| tree | 9d73fb03d0bb1ff93b40bc516a40fe9d99b340c5 /tests/auto/sql/kernel/qsqldatabase/tst_databases.h | |
| parent | b5fa9085146043c9d34025e273b5c9b9918d3db4 (diff) | |
macOS: Respect QWindow frame positioning on first show
When the QCocoaWindow is created it picks up the QWindow geometry,
and applies that to the NSWindow it creates. But since we haven't
created an NSWindow yet for the first step, our logic to adjust the
window geometry when the positionPolicy is WindowFrameInclusive is
a noop. As a result the NSWindow gets a client geometry corresponding
to what the user requested as the frame geometry.
To fix this we hook into [QNSWindow setContentView:], where we apply
QWindow properties to the NSWindow after creation.
The tst_QWindow::positioning test has been split out into a separate
framePositioning test.
Pick-to: 6.8 6.7 6.5
Change-Id: I85fe6ad10aee8346202de3d55d6b2cd89915c5df
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_databases.h')
0 files changed, 0 insertions, 0 deletions
