diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-08-17 15:44:59 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-08-19 09:16:32 +0200 |
commit | a1016213d02c2f562fcf7a22a8fcfb2bd45cd674 (patch) | |
tree | 91ee31e7680845d7b038312e36b3c1713bfe72a3 /src/widgets/widgets/qplaintextedit.h | |
parent | 699e8fe3a6724dd8288dd6a55b25e070eb198c9d (diff) |
Don't rely on QPrinter in widgets
Use the QPagedPaintDevice instead for the current
print() methods. Like this we can move the whole
printing system into it's own library.
Change-Id: I5e23fb3a9304eb3d12aa54959893601566249e23
Reviewed-on: http://codereview.qt.nokia.com/3208
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/widgets/widgets/qplaintextedit.h')
-rw-r--r-- | src/widgets/widgets/qplaintextedit.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/widgets/widgets/qplaintextedit.h b/src/widgets/widgets/qplaintextedit.h index f302275365..d5fa71bbb7 100644 --- a/src/widgets/widgets/qplaintextedit.h +++ b/src/widgets/widgets/qplaintextedit.h @@ -64,7 +64,7 @@ class QTextDocument; class QMenu; class QPlainTextEditPrivate; class QMimeData; - +class QPagedPaintDevice; class Q_WIDGETS_EXPORT QPlainTextEdit : public QAbstractScrollArea { @@ -177,9 +177,7 @@ public: bool canPaste() const; -#ifndef QT_NO_PRINTER - void print(QPrinter *printer) const; -#endif + void print(QPagedPaintDevice *printer) const; int blockCount() const; |