Changeset 58064 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 6, 2015 6:08:52 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm
r57973 r58064 182 182 if (pButton != Nil) 183 183 [pButton setHidden: YES]; 184 } 185 186 void darwinDisableZoomButtonFullscreenCheckImpl(NativeNSWindowRef pWindow) 187 { 188 NSButton *pButton = [pWindow standardWindowButton:NSWindowZoomButton]; 189 if (pButton != Nil) 190 { 191 /* By default there is an internal selector "_setNeedsZoom:" used. 192 * Since El Capitan it checks if window is able to enter full-screen 193 * and enters full-screen even if we do not want it, so we are 194 * hacking selector to be "zoom:" instead: */ 195 [pButton setAction: @selector(zoom:)]; 196 } 184 197 } 185 198 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp
r57973 r58064 82 82 { 83 83 ::darwinSetHideTitleButtonImpl(::darwinToNativeWindow(pWidget), buttonType); 84 } 85 86 void darwinDisableZoomButtonFullscreenCheck(QWidget *pWidget) 87 { 88 ::darwinDisableZoomButtonFullscreenCheckImpl(::darwinToNativeWindow(pWidget)); 84 89 } 85 90 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h
r57973 r58064 71 71 void darwinSetHidesAllTitleButtonsImpl(NativeNSWindowRef pWindow); 72 72 void darwinSetHideTitleButtonImpl(NativeNSWindowRef pWindow, CocoaWindowButtonType buttonType); 73 void darwinDisableZoomButtonFullscreenCheckImpl(NativeNSWindowRef pWindow); 73 74 void darwinLabelWindow(NativeNSWindowRef pWindow, NativeNSImageRef pImage, bool fCenter); 74 75 void darwinSetShowsWindowTransparentImpl(NativeNSWindowRef pWindow, bool fEnabled); … … 242 243 void darwinSetHidesAllTitleButtons(QWidget *pWidget); 243 244 void darwinSetHideTitleButton(QWidget *pWidget, CocoaWindowButtonType buttonType); 245 void darwinDisableZoomButtonFullscreenCheck(QWidget *pWidget); 244 246 void darwinSetShowsWindowTransparent(QWidget *pWidget, bool fEnabled); 245 247 void darwinSetWindowHasShadow(QWidget *pWidget, bool fEnabled); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r57973 r58064 307 307 /* No 'Zoom' button since El Capitan for now: */ 308 308 if (vboxGlobal().osRelease() >= MacOSXRelease_ElCapitan) 309 darwin SetHideTitleButton(this, CocoaWindowButtonType_Zoom);309 darwinDisableZoomButtonFullscreenCheck(this); 310 310 #endif /* Q_WS_MAC */ 311 311 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r57973 r58064 73 73 /* No 'Zoom' button since El Capitan for now: */ 74 74 if (vboxGlobal().osRelease() >= MacOSXRelease_ElCapitan) 75 darwin SetHideTitleButton(this, CocoaWindowButtonType_Zoom);75 darwinDisableZoomButtonFullscreenCheck(this); 76 76 } 77 77 #endif /* Q_WS_MAC */
Note:
See TracChangeset
for help on using the changeset viewer.