Changeset 846 for trunk/src/gui/dialogs/qpagesetupdialog_mac.mm
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/dialogs/qpagesetupdialog_mac.mm
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 51 51 QT_USE_NAMESPACE 52 52 53 @class Q CocoaPageLayoutDelegate;54 55 @interface Q CocoaPageLayoutDelegate: NSObject {53 @class QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate); 54 55 @interface QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate) : NSObject { 56 56 QMacPrintEnginePrivate *pe; 57 57 } … … 61 61 @end 62 62 63 @implementation Q CocoaPageLayoutDelegate63 @implementation QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate) 64 64 - (id)initWithMacPrintEngine:(QMacPrintEnginePrivate *)printEngine; 65 65 { … … 214 214 // Keep a copy to this since we plan on using it for a bit. 215 215 [pageLayout retain]; 216 Q CocoaPageLayoutDelegate *delegate = [[QCocoaPageLayoutDelegatealloc] initWithMacPrintEngine:ep];216 QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate) *delegate = [[QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate) alloc] initWithMacPrintEngine:ep]; 217 217 218 218 if (modality == Qt::ApplicationModal) { … … 233 233 void QPageSetupDialogPrivate::closeCocoaPageLayout() 234 234 { 235 // NSPageLayout can change the session behind our back and then our 236 // d->ep->session object will become a dangling pointer. Update it 237 // based on the "current" session 238 ep->session = static_cast<PMPrintSession>([ep->printInfo PMPrintSession]); 239 235 240 [pageLayout release]; 236 241 pageLayout = 0;
Note:
See TracChangeset
for help on using the changeset viewer.