Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/util/qsystemtrayicon_mac.mm

    r651 r769  
    531531            const QIcon icon = action->icon();
    532532            if(!icon.isNull()) {
     533#ifndef QT_MAC_USE_COCOA
     534                const short scale = GetMBarHeight();
     535#else
    533536                const short scale = [[NSApp mainMenu] menuBarHeight];
     537#endif
    534538                NSImage *nsimage = static_cast<NSImage *>(qt_mac_create_nsimage(icon.pixmap(QSize(scale, scale))));
    535539                [item setImage: nsimage];
     
    570574@end
    571575
    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.