diff options
author | Stephan Binner <stephan.binner@basyskom.com> | 2017-05-29 17:35:58 +0200 |
---|---|---|
committer | Stephan Binner <stephan.binner@basyskom.com> | 2017-05-30 17:21:26 +0000 |
commit | dbeb748de30bcc0e0615d21c593b761408404950 (patch) | |
tree | 63868dc50be0138424f82598daa81ded596bd26f /examples/widgets/graphicsview/chip/view.cpp | |
parent | f209215c0d96c8badcc14a3fc1cd8a6b0e56625c (diff) |
Convert features.printdialog to QT_[REQUIRE_]CONFIG
Change-Id: Ifb016ae2a0986b436f788b34513c81ea91f3804a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'examples/widgets/graphicsview/chip/view.cpp')
-rw-r--r-- | examples/widgets/graphicsview/chip/view.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/widgets/graphicsview/chip/view.cpp b/examples/widgets/graphicsview/chip/view.cpp index 62aa25b575..79b173bec7 100644 --- a/examples/widgets/graphicsview/chip/view.cpp +++ b/examples/widgets/graphicsview/chip/view.cpp @@ -50,8 +50,13 @@ #include "view.h" +#if defined(QT_PRINTSUPPORT_LIB) +#include <QtPrintSupport/qtprintsupportglobal.h> +#if QT_CONFIG(printdialog) #include <QPrinter> #include <QPrintDialog> +#endif +#endif #ifndef QT_NO_OPENGL #include <QtOpenGL> #else @@ -259,7 +264,7 @@ void View::toggleAntialiasing() void View::print() { -#if !defined(QT_NO_PRINTER) && !defined(QT_NO_PRINTDIALOG) +#if QT_CONFIG(printdialog) QPrinter printer; QPrintDialog dialog(&printer, this); if (dialog.exec() == QDialog::Accepted) { |