Changeset 9437 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 5, 2008 4:08:03 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxUtils.h
r9245 r9437 277 277 void darwinUpdateDockPreview (VBoxFrameBuffer *aFrameBuffer, CGImageRef aOverlayImage); 278 278 279 /* Icons in the menu of an mac application is unusual. */ 280 void darwinDisableIconsInMenus(); 281 279 282 /* Experimental region handler for the seamless mode */ 280 283 OSStatus darwinRegionHandler (EventHandlerCallRef aInHandlerCallRef, EventRef aInEvent, void *aInUserData); -
trunk/src/VBox/Frontends/VirtualBox4/src/darwin/VBoxUtils-darwin.cpp
r9259 r9437 33 33 #include <QPainter> 34 34 #include <QApplication> 35 36 #if QT_VERSION < 0x040400 37 extern void qt_mac_set_menubar_icons(bool b); 38 #endif /* QT_VERSION < 0x040400 */ 35 39 36 40 /** … … 254 258 CGImageRelease (ir); 255 259 CGColorSpaceRelease (cs); 260 } 261 262 void darwinDisableIconsInMenus() 263 { 264 /* No icons in the menu of a mac application. */ 265 #if QT_VERSION < 0x040400 266 qt_mac_set_menubar_icons (false); 267 #else /* QT_VERSION < 0x040400 */ 268 /* Available since Qt 4.4 only */ 269 a.setAttribute (Qt::AA_DontShowIconsInMenus, true); 270 #endif /* QT_VERSION >= 0x040400 */ 256 271 } 257 272 -
trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp
r9343 r9437 27 27 #ifdef Q_WS_MAC 28 28 # include "QIApplication.h" 29 # include "VBoxUtils.h" 29 30 #else 30 31 # define QIApplication QApplication … … 195 196 a.setPalette (pal); 196 197 #else /* !Q_WS_MAC */ 197 /* No icons in the menu of a mac application. */ 198 /* Available since Qt 4.4 only */ 199 // a.setAttribute (Qt::AA_DontShowIconsInMenus, true); 198 ::darwinDisableIconsInMenus(); 200 199 #endif /* Q_WS_MAC */ 201 200
Note:
See TracChangeset
for help on using the changeset viewer.