From 9fe5139e73958a2102cd5bb754c5049d18812c89 Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Wed, 13 Jun 2012 13:59:54 +0300 Subject: Fix building of qtbase examples when printsupport module is disabled. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Printsupport module is not that interesting in embedded environments, and it also does not compile at the moment for WEC7. Fixed qtbase examples to obey the availability of printsupport module. Change-Id: I960d1b628b9ca82450aa3b0df8dd101b2544ee12 Reviewed-by: Björn Breitmeyer Reviewed-by: Andreas Holzammer Reviewed-by: Oswald Buddenhagen --- examples/painting/fontsampler/fontsampler.pro | 3 ++- examples/painting/fontsampler/mainwindow.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/painting/fontsampler') diff --git a/examples/painting/fontsampler/fontsampler.pro b/examples/painting/fontsampler/fontsampler.pro index 539fc4894b..b918c51837 100644 --- a/examples/painting/fontsampler/fontsampler.pro +++ b/examples/painting/fontsampler/fontsampler.pro @@ -9,4 +9,5 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fontsampler.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/fontsampler INSTALLS += target sources -QT += widgets printsupport +QT += widgets +!isEmpty(QT.printsupport.name): QT += printsupport diff --git a/examples/painting/fontsampler/mainwindow.cpp b/examples/painting/fontsampler/mainwindow.cpp index c2d97f360e..ae45613abf 100644 --- a/examples/painting/fontsampler/mainwindow.cpp +++ b/examples/painting/fontsampler/mainwindow.cpp @@ -39,9 +39,11 @@ ****************************************************************************/ #include +#ifndef QT_NO_PRINTER #include #include #include +#endif #include "mainwindow.h" -- cgit v1.2.3