Changeset 50479 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 17, 2014 2:50:21 PM (11 years ago)
- 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 188 188 { 189 189 [pWindow setCollectionBehavior :NSWindowCollectionBehaviorFullScreenPrimary]; 190 } 191 192 void 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]; 190 198 } 191 199 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp
r50476 r50479 142 142 { 143 143 return ::darwinEnableFullscreenSupport(::darwinToNativeWindow(pWidget)); 144 } 145 146 void darwinToggleFullscreenMode(QWidget *pWidget) 147 { 148 return ::darwinToggleFullscreenMode(::darwinToNativeWindow(pWidget)); 144 149 } 145 150 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h
r50476 r50479 80 80 void darwinMinaturizeWindow(NativeNSWindowRef pWindow); 81 81 void darwinEnableFullscreenSupport(NativeNSWindowRef pWindow); 82 void darwinToggleFullscreenMode(NativeNSWindowRef pWindow); 82 83 83 84 bool darwinOpenFile(NativeNSStringRef pstrFile); … … 242 243 void darwinMinaturizeWindow(QWidget *pWidget); 243 244 void darwinEnableFullscreenSupport(QWidget *pWidget); 245 void darwinToggleFullscreenMode(QWidget *pWidget); 244 246 bool darwinOpenFile(const QString &strFile); 245 247
Note:
See TracChangeset
for help on using the changeset viewer.