Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/kernel/qcocoamenuloader_mac.mm

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    4747#include <private/qapplication_p.h>
    4848#include <private/qt_mac_p.h>
     49
    4950#include <qmenubar.h>
     51
    5052
    5153QT_FORWARD_DECLARE_CLASS(QCFString)
    5254QT_FORWARD_DECLARE_CLASS(QString)
    5355
     56
     57
     58
     59
     60
     61
    5462QT_USE_NAMESPACE
    5563
     
    5866- (void)awakeFromNib
    5967{
     68
     69
     70
     71
    6072    // Get the names in the nib to match the app name set by Qt.
    6173    NSString *appName = reinterpret_cast<const NSString*>(QCFString::toCFStringRef(qAppName()));
     
    7890{
    7991    // The application menu is the menu in the menu bar that contains the
    80     // 'Quit' item. When changing menu bar (e.g when swithing between
     92    // 'Quit' item. When changing menu bar (e.g when swithing between
    8193    // windows with different menu bars), we never recreate this menu, but
    8294    // instead pull it out the current menu bar and place into the new one:
     
    119131- (void)dealloc
    120132{
     133
     134
     135
     136
    121137    [lastAppSpecificItem release];
    122138    [theMenu release];
     
    207223{
    208224    [NSApp hide:sender];
     225
     226
     227
     228
     229
     230
     231
     232
     233
     234
     235
     236
     237
     238
     239
     240
     241
     242
    209243}
    210244
     
    222256    }
    223257}
     258
     259
     260
     261
     262
    224263@end
    225264#endif // QT_MAC_USE_COCOA
Note: See TracChangeset for help on using the changeset viewer.