src/gui/util/qsystemtrayicon_mac.mm
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 19 fcece45ef507
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     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 **
   567         action->activate(QAction::Trigger);
   567         action->activate(QAction::Trigger);
   568     }
   568     }
   569 }
   569 }
   570 @end
   570 @end
   571 
   571 
   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