VirtualBox

Ignore:
Timestamp:
Oct 9, 2015 11:32:02 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Revert r103120 workaround before the actual fix.

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  
    182182    if (pButton != Nil)
    183183        [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     }
    197184}
    198185
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp

    r58064 r58140  
    8282{
    8383    ::darwinSetHideTitleButtonImpl(::darwinToNativeWindow(pWidget), buttonType);
    84 }
    85 
    86 void darwinDisableZoomButtonFullscreenCheck(QWidget *pWidget)
    87 {
    88     ::darwinDisableZoomButtonFullscreenCheckImpl(::darwinToNativeWindow(pWidget));
    8984}
    9085
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h

    r58064 r58140  
    7171void darwinSetHidesAllTitleButtonsImpl(NativeNSWindowRef pWindow);
    7272void darwinSetHideTitleButtonImpl(NativeNSWindowRef pWindow, CocoaWindowButtonType buttonType);
    73 void darwinDisableZoomButtonFullscreenCheckImpl(NativeNSWindowRef pWindow);
    7473void darwinLabelWindow(NativeNSWindowRef pWindow, NativeNSImageRef pImage, bool fCenter);
    7574void darwinSetShowsWindowTransparentImpl(NativeNSWindowRef pWindow, bool fEnabled);
     
    243242void darwinSetHidesAllTitleButtons(QWidget *pWidget);
    244243void darwinSetHideTitleButton(QWidget *pWidget, CocoaWindowButtonType buttonType);
    245 void darwinDisableZoomButtonFullscreenCheck(QWidget *pWidget);
    246244void darwinSetShowsWindowTransparent(QWidget *pWidget, bool fEnabled);
    247245void darwinSetWindowHasShadow(QWidget *pWidget, bool fEnabled);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r58064 r58140  
    307307    /* No 'Zoom' button since El Capitan for now: */
    308308    if (vboxGlobal().osRelease() >= MacOSXRelease_ElCapitan)
    309         darwinDisableZoomButtonFullscreenCheck(this);
     309        darwinSetHideTitleButton(this, CocoaWindowButtonType_Zoom);
    310310#endif /* Q_WS_MAC */
    311311}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp

    r58064 r58140  
    7373    /* No 'Zoom' button since El Capitan for now: */
    7474    if (vboxGlobal().osRelease() >= MacOSXRelease_ElCapitan)
    75         darwinDisableZoomButtonFullscreenCheck(this);
     75        darwinSetHideTitleButton(this, CocoaWindowButtonType_Zoom);
    7676}
    7777#endif /* Q_WS_MAC */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette