QPdfPaintEngine - Remove postscript flag

Remove a now unneeded postscript flag.

Change-Id: I307e4a64aa7ba4eed396530ffbf3bca5ae73e9c2
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
bb10
John Layt 2013-12-29 20:25:30 +01:00 committed by The Qt Project
parent 62c4e288a1
commit c07c9bcf4a
2 changed files with 2 additions and 5 deletions

View File

@ -1486,7 +1486,6 @@ QPdfEnginePrivate::QPdfEnginePrivate()
leftMargin(10), topMargin(10), rightMargin(10), bottomMargin(10) // ~3.5 mm
{
resolution = 1200;
postscript = false;
currentObject = 1;
currentPage = 0;
stroker.stream = 0;
@ -1520,7 +1519,6 @@ bool QPdfEngine::begin(QPaintDevice *pdev)
d->ownsDevice = true;
}
d->postscript = false;
d->currentObject = 1;
d->currentPage = new QPdfPage;
@ -2506,8 +2504,8 @@ void QPdfEnginePrivate::drawTextItem(const QPointF &p, const QTextItemInt &ti)
QFontEngine::FaceId face_id = fe->faceId();
bool noEmbed = false;
if (face_id.filename.isEmpty()
|| (!postscript && ((fe->fsType & 0x200) /* bitmap embedding only */
|| (fe->fsType == 2) /* no embedding allowed */))) {
|| fe->fsType & 0x200 /* bitmap embedding only */
|| fe->fsType == 2 /* no embedding allowed */) {
*currentPage << "Q\n";
q->QPaintEngine::drawTextItem(p, ti);
*currentPage << "q\n";

View File

@ -250,7 +250,6 @@ public:
void newPage();
bool postscript;
int currentObject;
QPdfPage* currentPage;