summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtextedit.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-08-17 15:44:59 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-08-19 09:16:32 +0200
commita1016213d02c2f562fcf7a22a8fcfb2bd45cd674 (patch)
tree91ee31e7680845d7b038312e36b3c1713bfe72a3 /src/widgets/widgets/qtextedit.h
parent699e8fe3a6724dd8288dd6a55b25e070eb198c9d (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/qtextedit.h')
-rw-r--r--src/widgets/widgets/qtextedit.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/widgets/qtextedit.h b/src/widgets/widgets/qtextedit.h
index 793337b969..69f5ac23d5 100644
--- a/src/widgets/widgets/qtextedit.h
+++ b/src/widgets/widgets/qtextedit.h
@@ -66,6 +66,7 @@ class QTextDocument;
class QMenu;
class QTextEditPrivate;
class QMimeData;
+class QPagedPaintDevice;
class Q_WIDGETS_EXPORT QTextEdit : public QAbstractScrollArea
{
@@ -232,9 +233,7 @@ public:
bool canPaste() const;
-#ifndef QT_NO_PRINTER
- void print(QPrinter *printer) const;
-#endif
+ void print(QPagedPaintDevice *printer) const;
public Q_SLOTS:
void setFontPointSize(qreal s);