summaryrefslogtreecommitdiffstats
path: root/examples/touch/fingerpaint/scribblearea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/touch/fingerpaint/scribblearea.cpp')
-rw-r--r--examples/touch/fingerpaint/scribblearea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/touch/fingerpaint/scribblearea.cpp b/examples/touch/fingerpaint/scribblearea.cpp
index f672a3fdd1..0d13e4579d 100644
--- a/examples/touch/fingerpaint/scribblearea.cpp
+++ b/examples/touch/fingerpaint/scribblearea.cpp
@@ -154,7 +154,7 @@ void ScribbleArea::resizeImage(QImage *image, const QSize &newSize)
//! [21]
void ScribbleArea::print()
{
-#ifndef QT_NO_PRINTER
+#if !defined(QT_NO_PRINTER) && !defined(QT_NO_PRINTDIALOG)
QPrinter printer(QPrinter::HighResolution);
QPrintDialog printDialog(&printer, this);