src/gui/kernel/qcocoamenuloader_mac.mm
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   108         [appMenuItem setSubmenu:appMenu];
   108         [appMenuItem setSubmenu:appMenu];
   109         [menu insertItem:appMenuItem atIndex:0];
   109         [menu insertItem:appMenuItem atIndex:0];
   110     }
   110     }
   111 }
   111 }
   112 
   112 
       
   113 - (void)removeActionsFromAppMenu
       
   114 {
       
   115     for (NSMenuItem *item in [appMenu itemArray])
       
   116         [item setTag:nil];
       
   117 }
       
   118 
   113 - (void)dealloc
   119 - (void)dealloc
   114 {
   120 {
   115     [lastAppSpecificItem release];
   121     [lastAppSpecificItem release];
   116     [theMenu release];
   122     [theMenu release];
   117     [appMenu release];
   123     [appMenu release];