diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-08-16 14:04:48 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-08-19 09:16:22 +0200 |
commit | 699e8fe3a6724dd8288dd6a55b25e070eb198c9d (patch) | |
tree | c6928eb3928f2e687e4050e9f409a0afa2e7828a /examples | |
parent | 9ebdc333a6a6485fd60a50a742a1d6edec211f53 (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 'examples')
-rw-r--r-- | examples/itemviews/spreadsheet/printview.h | 1 | ||||
-rw-r--r-- | examples/richtext/textedit/textedit.h | 1 |
2 files changed, 2 insertions, 0 deletions
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 <QTableView> +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 { |