Changeset 58140 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 9, 2015 11:32:02 AM (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
r58064 r58140 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-screen193 * and enters full-screen even if we do not want it, so we are194 * hacking selector to be "zoom:" instead: */195 [pButton setAction: @selector(zoom:)];196 }197 184 } 198 185 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp
r58064 r58140 82 82 { 83 83 ::darwinSetHideTitleButtonImpl(::darwinToNativeWindow(pWidget), buttonType); 84 }85 86 void darwinDisableZoomButtonFullscreenCheck(QWidget *pWidget)87 {88 ::darwinDisableZoomButtonFullscreenCheckImpl(::darwinToNativeWindow(pWidget));89 84 } 90 85 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h
r58064 r58140 71 71 void darwinSetHidesAllTitleButtonsImpl(NativeNSWindowRef pWindow); 72 72 void darwinSetHideTitleButtonImpl(NativeNSWindowRef pWindow, CocoaWindowButtonType buttonType); 73 void darwinDisableZoomButtonFullscreenCheckImpl(NativeNSWindowRef pWindow);74 73 void darwinLabelWindow(NativeNSWindowRef pWindow, NativeNSImageRef pImage, bool fCenter); 75 74 void darwinSetShowsWindowTransparentImpl(NativeNSWindowRef pWindow, bool fEnabled); … … 243 242 void darwinSetHidesAllTitleButtons(QWidget *pWidget); 244 243 void darwinSetHideTitleButton(QWidget *pWidget, CocoaWindowButtonType buttonType); 245 void darwinDisableZoomButtonFullscreenCheck(QWidget *pWidget);246 244 void darwinSetShowsWindowTransparent(QWidget *pWidget, bool fEnabled); 247 245 void darwinSetWindowHasShadow(QWidget *pWidget, bool fEnabled); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r58064 r58140 307 307 /* No 'Zoom' button since El Capitan for now: */ 308 308 if (vboxGlobal().osRelease() >= MacOSXRelease_ElCapitan) 309 darwin DisableZoomButtonFullscreenCheck(this);309 darwinSetHideTitleButton(this, CocoaWindowButtonType_Zoom); 310 310 #endif /* Q_WS_MAC */ 311 311 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r58064 r58140 73 73 /* No 'Zoom' button since El Capitan for now: */ 74 74 if (vboxGlobal().osRelease() >= MacOSXRelease_ElCapitan) 75 darwin DisableZoomButtonFullscreenCheck(this);75 darwinSetHideTitleButton(this, CocoaWindowButtonType_Zoom); 76 76 } 77 77 #endif /* Q_WS_MAC */
Note:
See TracChangeset
for help on using the changeset viewer.