diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-08-02 00:07:15 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-08-22 08:06:31 +0000 |
commit | 8b3a120a3b05803494d4e06edb5a8f4ee5d080f6 (patch) | |
tree | bc2f62ec5ae03189ad59da1dc1caf8a2a0d03643 /src/corelib/tools/qdatetime.h | |
parent | 12c5264d9add1826d543c36d893db77262195fc6 (diff) |
macOS: Simplify and correct style mask determination
This function had accumulated a fair bit of accidental
complexity over the years.
- No early returns, make sure to preserve fullscreen
state for all windows.
- Use windowIsPopupType() directly to set borderless
for Qt::Popup (but not Qt::Tool).
- Handle Qt::Tool explicitly.
- Deduplicate Qt::CustomizeWindowMask handling.
- Remove case that used the absence of NSResizableWindowMask
to remove the maximize button. Maximize is now
disabled elsewhere (setWindowZoomButton). All windows
now get NSResizableWindowMask by default.
- Qt::ForeignWindow now gets a standard window style
mask instead of NSBorderlessWindowMask. The old
code did not handle this case and left the mask
value unmodified.
Change-Id: I56499e9f05c3f481b5a96e0507da2fb195f207fa
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/tools/qdatetime.h')
0 files changed, 0 insertions, 0 deletions