diff options
author | Janne Anttila <janne.anttila@digia.com> | 2013-04-24 15:02:40 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-22 09:34:12 +0200 |
commit | 5be73820b872dfed6a31a43a7876755450a438b6 (patch) | |
tree | 22fe5c59e4ab98529c79db16b2008db32996e8d4 /src/assistant | |
parent | 45cebacd7ad3b9871e8ccfb1fcd87b6c0bb3f66a (diff) | |
download | qttools-5be73820b872dfed6a31a43a7876755450a438b6.tar.gz |
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 <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/assistant')
-rw-r--r-- | src/assistant/assistant/centralwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/assistant/assistant/centralwidget.cpp b/src/assistant/assistant/centralwidget.cpp index 29648fe6f..ccab203f5 100644 --- a/src/assistant/assistant/centralwidget.cpp +++ b/src/assistant/assistant/centralwidget.cpp @@ -52,10 +52,12 @@ #include <QtGui/QKeyEvent> #include <QtWidgets/QMenu> +#ifndef QT_NO_PRINTER #include <QtPrintSupport/QPageSetupDialog> #include <QtPrintSupport/QPrintDialog> #include <QtPrintSupport/QPrintPreviewDialog> #include <QtPrintSupport/QPrinter> +#endif #include <QtWidgets/QStackedWidget> #include <QtWidgets/QTextBrowser> #include <QtWidgets/QVBoxLayout> |