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/mainwindows/dockwidgets/dockwidgets.pro | 3 ++- examples/mainwindows/dockwidgets/mainwindow.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/mainwindows') diff --git a/examples/mainwindows/dockwidgets/dockwidgets.pro b/examples/mainwindows/dockwidgets/dockwidgets.pro index 42eab88010..7e0da2496e 100644 --- a/examples/mainwindows/dockwidgets/dockwidgets.pro +++ b/examples/mainwindows/dockwidgets/dockwidgets.pro @@ -9,6 +9,7 @@ sources.files = $$SOURCES $$HEADERS $$RESOURCES dockwidgets.pro images sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/dockwidgets 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/mainwindows/dockwidgets/mainwindow.cpp b/examples/mainwindows/dockwidgets/mainwindow.cpp index 9f1a09c7d5..da01d56502 100644 --- a/examples/mainwindows/dockwidgets/mainwindow.cpp +++ b/examples/mainwindows/dockwidgets/mainwindow.cpp @@ -40,7 +40,10 @@ //! [0] #include +#ifndef QT_NO_PRINTDIALOG #include +#endif + #include "mainwindow.h" //! [0] -- cgit v1.2.3