Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 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/dialogs/qpagesetupdialog_mac.mm

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    5151QT_USE_NAMESPACE
    5252
    53 @class QCocoaPageLayoutDelegate;
    54 
    55 @interface QCocoaPageLayoutDelegate : NSObject {
     53@class QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate);
     54
     55@interface QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate) : NSObject {
    5656    QMacPrintEnginePrivate *pe;
    5757}
     
    6161@end
    6262
    63 @implementation QCocoaPageLayoutDelegate
     63@implementation QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate)
    6464- (id)initWithMacPrintEngine:(QMacPrintEnginePrivate *)printEngine;
    6565{
     
    214214    // Keep a copy to this since we plan on using it for a bit.
    215215    [pageLayout retain];
    216     QCocoaPageLayoutDelegate *delegate = [[QCocoaPageLayoutDelegate alloc] initWithMacPrintEngine:ep];
     216    QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate) *delegate = [[QT_MANGLE_NAMESPACE(QCocoaPageLayoutDelegate) alloc] initWithMacPrintEngine:ep];
    217217
    218218    if (modality == Qt::ApplicationModal) {
     
    233233void QPageSetupDialogPrivate::closeCocoaPageLayout()
    234234{
     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
    235240    [pageLayout release];
    236241    pageLayout = 0;
Note: See TracChangeset for help on using the changeset viewer.