diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-03-27 18:41:39 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-03-28 12:30:24 +0000 |
commit | 22a414ab3d988b8819f5738e740caa775ad34697 (patch) | |
tree | df05a4c7dfe4ce5da42fe5450640dc9331af4b6b /bin | |
parent | dd385741605df2dd0cd977ebd8cd49cbf5d90271 (diff) |
macOS: Remove workaround for default-sized NSViews
The workaround introduced in 38a55c7 to explicitly call viewDidChangeFrame()
was not ideal for a multitude of reasons. Instead we can just initialize the
NSView with a NSZeroRect frame, which will ensure that whatever geometry
we set from the Qt side will result in geometry change and expose events.
The only case where we will not receive an expose event is if the QWindow
is requested to be 0x0 sized, but that wouldn't warrant an expose event
anyways. Also, it's not possible to initialize a QWindow to 0x0 from the
Qt side, as that will trigger QPlatformWindow::initialGeometry() to pick
the default size (160x160 in the case of macOS).
Task-number: QTBUG-58963
Change-Id: Ia84de7edcfdf26b90e4e93186fabe8b5c7382caa
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions