Changeset 769 for trunk/src/gui/util/qsystemtrayicon_mac.mm
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/util/qsystemtrayicon_mac.mm
r651 r769 531 531 const QIcon icon = action->icon(); 532 532 if(!icon.isNull()) { 533 #ifndef QT_MAC_USE_COCOA 534 const short scale = GetMBarHeight(); 535 #else 533 536 const short scale = [[NSApp mainMenu] menuBarHeight]; 537 #endif 534 538 NSImage *nsimage = static_cast<NSImage *>(qt_mac_create_nsimage(icon.pixmap(QSize(scale, scale)))); 535 539 [item setImage: nsimage]; … … 570 574 @end 571 575 572 573 /* Done here because this is the only .mm for now! -Sam */574 QMacCocoaAutoReleasePool::QMacCocoaAutoReleasePool()575 {576 NSApplicationLoad();577 pool = (void*)[[NSAutoreleasePool alloc] init];578 }579 580 QMacCocoaAutoReleasePool::~QMacCocoaAutoReleasePool()581 {582 [(NSAutoreleasePool*)pool release];583 }584
Note:
See TracChangeset
for help on using the changeset viewer.