diff options
author | Andy Shaw <andy.shaw@qt.io> | 2017-02-08 10:41:52 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2018-01-16 17:02:10 +0000 |
commit | 6121c400181419a4a2a0faf842efdde8b59f87a5 (patch) | |
tree | 0fe1e22b0bd416a451df727dbdab1fff025057ff /src/plugins/platforms/cocoa/qcocoatheme.mm | |
parent | 03c33a0d859f06fbcdf2e523206ff8f7b57cf8c5 (diff) |
Cocoa: Use the whole geometry when in fullscreen mode for popup menus
When in full screen, then the geometry available is the whole screen
not including the menubar or dock area. This ensures that it does
not leave space for the dock area.
Task-number: QTBUG-39403
Change-Id: I15d7b7764d83282e1ee057628680a338b72711a6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoatheme.mm')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoatheme.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoatheme.mm b/src/plugins/platforms/cocoa/qcocoatheme.mm index 2aab5fd545..93f0400916 100644 --- a/src/plugins/platforms/cocoa/qcocoatheme.mm +++ b/src/plugins/platforms/cocoa/qcocoatheme.mm @@ -347,6 +347,8 @@ QVariant QCocoaTheme::themeHint(ThemeHint hint) const return QVariant(int(HoverEffect)); case QPlatformTheme::SpellCheckUnderlineStyle: return QVariant(int(QTextCharFormat::DotLine)); + case QPlatformTheme::UseFullScreenForPopupMenu: + return QVariant(bool([[NSApplication sharedApplication] presentationOptions] & NSApplicationPresentationFullScreen)); default: break; } |