VirtualBox

Changeset 50479 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 17, 2014 2:50:21 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: 7016: Adding native stuff allowing to toggle fullscreen mode for corresponding QWidget.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm

    r50476 r50479  
    188188{
    189189    [pWindow setCollectionBehavior :NSWindowCollectionBehaviorFullScreenPrimary];
     190}
     191
     192void darwinToggleFullscreenMode(NativeNSWindowRef pWindow)
     193{
     194    /* Toggle native fullscreen mode for passed pWindow.
     195     * This method is available since 10.7 only. */
     196    if ([pWindow respondsToSelector: @selector(toggleFullScreen:)])
     197        [pWindow performSelector: @selector(toggleFullScreen:) withObject: (id)nil];
    190198}
    191199
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp

    r50476 r50479  
    142142{
    143143    return ::darwinEnableFullscreenSupport(::darwinToNativeWindow(pWidget));
     144}
     145
     146void darwinToggleFullscreenMode(QWidget *pWidget)
     147{
     148    return ::darwinToggleFullscreenMode(::darwinToNativeWindow(pWidget));
    144149}
    145150
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h

    r50476 r50479  
    8080void darwinMinaturizeWindow(NativeNSWindowRef pWindow);
    8181void darwinEnableFullscreenSupport(NativeNSWindowRef pWindow);
     82void darwinToggleFullscreenMode(NativeNSWindowRef pWindow);
    8283
    8384bool darwinOpenFile(NativeNSStringRef pstrFile);
     
    242243void darwinMinaturizeWindow(QWidget *pWidget);
    243244void darwinEnableFullscreenSupport(QWidget *pWidget);
     245void darwinToggleFullscreenMode(QWidget *pWidget);
    244246bool darwinOpenFile(const QString &strFile);
    245247
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