From 5be73820b872dfed6a31a43a7876755450a438b6 Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Wed, 24 Apr 2013 15:02:40 +0300 Subject: [PATCH] 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 --- src/assistant/assistant/centralwidget.cpp | 2 ++ src/designer/src/designer/qdesigner_actions.cpp | 2 ++ src/designer/src/designer/qdesigner_actions.h | 2 ++ 3 files changed, 6 insertions(+) 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 -- 2.7.4