From: Janne Anttila Date: Wed, 24 Apr 2013 12:02:40 +0000 (+0300) Subject: Fix assistant and designer builds without printer. X-Git-Tag: accepted/tizen/20131212.181521~101^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5be73820b872dfed6a31a43a7876755450a438b6;p=platform%2Fupstream%2Fqttools.git Fix assistant and designer builds without printer. The actual code using printer related classes is already wrapped with QT_NO_PRINTER macros, but the include statements were not. The reason why include statement probably were not wrapped with QT_NO_PRINTER is that in Qt4 all headers were synchronized to include directory. Now with Qt5 modularization headers for modules which are disabled are not anymore synchronized to include directory so they need to be wrapped with same ifdefs. Change-Id: I0efd1342cd18860b5fed63b248812e9dced8f2b3 Reviewed-by: Oswald Buddenhagen --- diff --git a/src/assistant/assistant/centralwidget.cpp b/src/assistant/assistant/centralwidget.cpp index 29648fe..ccab203 100644 --- a/src/assistant/assistant/centralwidget.cpp +++ b/src/assistant/assistant/centralwidget.cpp @@ -52,10 +52,12 @@ #include #include +#ifndef QT_NO_PRINTER #include #include #include #include +#endif #include #include #include diff --git a/src/designer/src/designer/qdesigner_actions.cpp b/src/designer/src/designer/qdesigner_actions.cpp index 8f6d978..f8c042c 100644 --- a/src/designer/src/designer/qdesigner_actions.cpp +++ b/src/designer/src/designer/qdesigner_actions.cpp @@ -85,7 +85,9 @@ #include #include #include +#ifndef QT_NO_PRINTER #include +#endif #include #include #include diff --git a/src/designer/src/designer/qdesigner_actions.h b/src/designer/src/designer/qdesigner_actions.h index c1c257f..d7780e3 100644 --- a/src/designer/src/designer/qdesigner_actions.h +++ b/src/designer/src/designer/qdesigner_actions.h @@ -47,7 +47,9 @@ #include #include +#ifndef QT_NO_PRINTER #include +#endif QT_BEGIN_NAMESPACE