From 699e8fe3a6724dd8288dd6a55b25e070eb198c9d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 16 Aug 2011 14:04:48 +0200 Subject: 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 Reviewed-by: Gunnar Sletta --- examples/itemviews/spreadsheet/printview.h | 1 + examples/richtext/textedit/textedit.h | 1 + 2 files changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/itemviews/spreadsheet/printview.h b/examples/itemviews/spreadsheet/printview.h index 7c74844483..43a7bb39b7 100644 --- a/examples/itemviews/spreadsheet/printview.h +++ b/examples/itemviews/spreadsheet/printview.h @@ -43,6 +43,7 @@ #define PRINTVIEW_H #include +class QPrinter; class PrintView : public QTableView { diff --git a/examples/richtext/textedit/textedit.h b/examples/richtext/textedit/textedit.h index 6436178ab5..ed2057214e 100644 --- a/examples/richtext/textedit/textedit.h +++ b/examples/richtext/textedit/textedit.h @@ -52,6 +52,7 @@ QT_FORWARD_DECLARE_CLASS(QFontComboBox) QT_FORWARD_DECLARE_CLASS(QTextEdit) QT_FORWARD_DECLARE_CLASS(QTextCharFormat) QT_FORWARD_DECLARE_CLASS(QMenu) +QT_FORWARD_DECLARE_CLASS(QPrinter) class TextEdit : public QMainWindow { -- cgit v1.2.3