summaryrefslogtreecommitdiffstats
path: root/examples/richtext/textedit
diff options
context:
space:
mode:
Diffstat (limited to 'examples/richtext/textedit')
-rw-r--r--examples/richtext/textedit/textedit.h1
-rw-r--r--examples/richtext/textedit/textedit.pro1
2 files changed, 2 insertions, 0 deletions
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
{
diff --git a/examples/richtext/textedit/textedit.pro b/examples/richtext/textedit/textedit.pro
index 328de6e51e..b364a00f98 100644
--- a/examples/richtext/textedit/textedit.pro
+++ b/examples/richtext/textedit/textedit.pro
@@ -19,4 +19,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.html *.doc images
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/textedit
INSTALLS += target sources
+QT += widgets printsupport
symbian: CONFIG += qt_example