summaryrefslogtreecommitdiffstats
path: root/examples/painting
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-08-25 15:53:04 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-08-25 15:54:16 +0200
commit5e6605f7b006225f112b92956961974c8c8ad1a9 (patch)
tree4e00075b970d26f640b952b03a2c32865f6ea3ff /examples/painting
parent794feb002ad468bcfa60d1edc55637273fef5832 (diff)
Fix building of examples.
Change-Id: Iebb56c81fd13deaa82d8883e3f1529f1a78ebea8 Reviewed-on: http://codereview.qt.nokia.com/3603 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'examples/painting')
-rw-r--r--examples/painting/fontsampler/fontsampler.pro2
-rw-r--r--examples/painting/fontsampler/mainwindow.cpp3
-rw-r--r--examples/painting/fontsampler/mainwindow.h1
3 files changed, 5 insertions, 1 deletions
diff --git a/examples/painting/fontsampler/fontsampler.pro b/examples/painting/fontsampler/fontsampler.pro
index 69960cd68e..63892a319a 100644
--- a/examples/painting/fontsampler/fontsampler.pro
+++ b/examples/painting/fontsampler/fontsampler.pro
@@ -10,5 +10,5 @@ sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/fontsampler
INSTALLS += target sources
symbian: CONFIG += qt_example
-QT += widgets
+QT += widgets printsupport
maemo5: CONFIG += qt_example
diff --git a/examples/painting/fontsampler/mainwindow.cpp b/examples/painting/fontsampler/mainwindow.cpp
index 21babaf8d2..9efd307f88 100644
--- a/examples/painting/fontsampler/mainwindow.cpp
+++ b/examples/painting/fontsampler/mainwindow.cpp
@@ -39,6 +39,9 @@
****************************************************************************/
#include <QtWidgets>
+#include <QPrinter>
+#include <QPrintDialog>
+#include <QPrintPreviewDialog>
#include "mainwindow.h"
diff --git a/examples/painting/fontsampler/mainwindow.h b/examples/painting/fontsampler/mainwindow.h
index 4021ee7c6c..1b66c3c370 100644
--- a/examples/painting/fontsampler/mainwindow.h
+++ b/examples/painting/fontsampler/mainwindow.h
@@ -44,6 +44,7 @@
#include "ui_mainwindowbase.h"
QT_BEGIN_NAMESPACE
+class QPrinter;
class QTextEdit;
class QTreeWidget;
class QTreeWidgetItem;