summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qwidgettextcontrol_p.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/qwidgettextcontrol_p.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/qwidgettextcontrol_p.h')
-rw-r--r--src/widgets/widgets/qwidgettextcontrol_p.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/widgets/qwidgettextcontrol_p.h b/src/widgets/widgets/qwidgettextcontrol_p.h
index 4c38163906..67ae0596b3 100644
--- a/src/widgets/widgets/qwidgettextcontrol_p.h
+++ b/src/widgets/widgets/qwidgettextcontrol_p.h
@@ -176,9 +176,7 @@ public:
bool isWordSelectionEnabled() const;
void setWordSelectionEnabled(bool enabled);
-#ifndef QT_NO_PRINTER
- void print(QPrinter *printer) const;
-#endif
+ void print(QPagedPaintDevice *printer) const;
virtual int hitTest(const QPointF &point, Qt::HitTestAccuracy accuracy) const;
virtual QRectF blockBoundingRect(const QTextBlock &block) const;