diff options
Diffstat (limited to 'examples/touch/fingerpaint')
-rw-r--r-- | examples/touch/fingerpaint/fingerpaint.pro | 3 | ||||
-rw-r--r-- | examples/touch/fingerpaint/scribblearea.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/touch/fingerpaint/fingerpaint.pro b/examples/touch/fingerpaint/fingerpaint.pro index dc9e84696d..4a17ed91b3 100644 --- a/examples/touch/fingerpaint/fingerpaint.pro +++ b/examples/touch/fingerpaint/fingerpaint.pro @@ -9,7 +9,8 @@ target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/touch/fingerpaint sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fingerpaint.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/touch/fingerpaint INSTALLS += target sources -QT += widgets printsupport +QT += widgets +!isEmpty(QT.printsupport.name): QT += printsupport simulator: warning(This example might not fully work on Simulator platform) diff --git a/examples/touch/fingerpaint/scribblearea.cpp b/examples/touch/fingerpaint/scribblearea.cpp index 5b32980ee2..8e11d980fb 100644 --- a/examples/touch/fingerpaint/scribblearea.cpp +++ b/examples/touch/fingerpaint/scribblearea.cpp @@ -39,8 +39,10 @@ ****************************************************************************/ #include <QtWidgets> +#ifndef QT_NO_PRINTER #include <QPrinter> #include <QPrintDialog> +#endif #include "scribblearea.h" |