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/painting/qprintengine_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)
     
    115115    if (d->state == QPrinter::Aborted)
    116116        return true;  // I was just here a function call ago :)
    117     if(d->paintEngine->type() == QPaintEngine::CoreGraphics)
     117    if(d->paintEngine->type() == QPaintEngine::CoreGraphics) {
     118        // We dont need the paint engine to call restoreGraphicsState()
     119        static_cast<QCoreGraphicsPaintEngine*>(d->paintEngine)->d_func()->stackCount = 0;
    118120        static_cast<QCoreGraphicsPaintEngine*>(d->paintEngine)->d_func()->hd = 0;
     121    }
    119122    d->paintEngine->end();
    120123    if (d->state != QPrinter::Idle)
     
    686689        d->fullPage = value.toBool();
    687690        break;
     691    case PPK_CopyCount: // fallthrough
    688692    case PPK_NumberOfCopies:
    689693        PMSetCopies(d->settings, value.toInt(), false);
     
    787791    case PPK_NumberOfCopies:
    788792        ret = 1;
     793        break;
     794    case PPK_CopyCount: {
     795        UInt32 copies = 1;
     796        PMGetCopies(d->settings, &copies);
     797        ret = (uint) copies;
     798        break;
     799    }
     800    case PPK_SupportsMultipleCopies:
     801        ret = true;
    789802        break;
    790803    case PPK_Orientation:
Note: See TracChangeset for help on using the changeset viewer.