equal
deleted
inserted
replaced
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 |
|