summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2013-12-29 20:25:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-09 18:15:50 +0100
commitc07c9bcf4a645df3a7ec400ec8fe1298129eff79 (patch)
treeca61c5965a68a4ca128cf480754c745edf8290cd
parent62c4e288a11769bde45c9c74d731ed8628303f19 (diff)
QPdfPaintEngine - Remove postscript flag
Remove a now unneeded postscript flag. Change-Id: I307e4a64aa7ba4eed396530ffbf3bca5ae73e9c2 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
-rw-r--r--src/gui/painting/qpdf.cpp6
-rw-r--r--src/gui/painting/qpdf_p.h1
2 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp
index c05f47c59d..147fa3f561 100644
--- a/src/gui/painting/qpdf.cpp
+++ b/src/gui/painting/qpdf.cpp
@@ -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";
diff --git a/src/gui/painting/qpdf_p.h b/src/gui/painting/qpdf_p.h
index 54530d0f78..ae2d4b00ac 100644
--- a/src/gui/painting/qpdf_p.h
+++ b/src/gui/painting/qpdf_p.h
@@ -250,7 +250,6 @@ public:
void newPage();
- bool postscript;
int currentObject;
QPdfPage* currentPage;