Changeset 846 for trunk/src/gui/painting/qprintengine_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/painting/qprintengine_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) … … 115 115 if (d->state == QPrinter::Aborted) 116 116 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; 118 120 static_cast<QCoreGraphicsPaintEngine*>(d->paintEngine)->d_func()->hd = 0; 121 } 119 122 d->paintEngine->end(); 120 123 if (d->state != QPrinter::Idle) … … 686 689 d->fullPage = value.toBool(); 687 690 break; 691 case PPK_CopyCount: // fallthrough 688 692 case PPK_NumberOfCopies: 689 693 PMSetCopies(d->settings, value.toInt(), false); … … 787 791 case PPK_NumberOfCopies: 788 792 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; 789 802 break; 790 803 case PPK_Orientation:
Note:
See TracChangeset
for help on using the changeset viewer.