summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocument.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-08-16 14:04:48 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-08-19 09:16:22 +0200
commit699e8fe3a6724dd8288dd6a55b25e070eb198c9d (patch)
treec6928eb3928f2e687e4050e9f409a0afa2e7828a /src/gui/text/qtextdocument.h
parent9ebdc333a6a6485fd60a50a742a1d6edec211f53 (diff)
Use the paged paintdevice in the print() method of QTextDocument.
This is required to be able to move the printing system into it's own library. Change-Id: If70a55be4c4413f9cd917a30d1b368f32c1145e4 Reviewed-on: http://codereview.qt.nokia.com/3207 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/text/qtextdocument.h')
-rw-r--r--src/gui/text/qtextdocument.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/text/qtextdocument.h b/src/gui/text/qtextdocument.h
index 268b72e514..363d7abb21 100644
--- a/src/gui/text/qtextdocument.h
+++ b/src/gui/text/qtextdocument.h
@@ -57,7 +57,7 @@ class QTextFormatCollection;
class QTextListFormat;
class QRect;
class QPainter;
-class QPrinter;
+class QPagedPaintDevice;
class QAbstractTextDocumentLayout;
class QPoint;
class QTextObject;
@@ -206,9 +206,7 @@ public:
bool isModified() const;
-#ifndef QT_NO_PRINTER
- void print(QPrinter *printer) const;
-#endif
+ void print(QPagedPaintDevice *printer) const;
enum ResourceType {
HtmlResource = 1,