From dbeb748de30bcc0e0615d21c593b761408404950 Mon Sep 17 00:00:00 2001 From: Stephan Binner Date: Mon, 29 May 2017 17:35:58 +0200 Subject: Convert features.printdialog to QT_[REQUIRE_]CONFIG Change-Id: Ifb016ae2a0986b436f788b34513c81ea91f3804a Reviewed-by: Oswald Buddenhagen --- examples/widgets/richtext/orderform/mainwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'examples/widgets/richtext/orderform/mainwindow.cpp') diff --git a/examples/widgets/richtext/orderform/mainwindow.cpp b/examples/widgets/richtext/orderform/mainwindow.cpp index 35934bee72..030072978e 100644 --- a/examples/widgets/richtext/orderform/mainwindow.cpp +++ b/examples/widgets/richtext/orderform/mainwindow.cpp @@ -49,10 +49,13 @@ ****************************************************************************/ #include -#ifndef QT_NO_PRINTER +#if defined(QT_PRINTSUPPORT_LIB) +#include +#if QT_CONFIG(printdialog) #include #include #endif +#endif #include "detailsdialog.h" #include "mainwindow.h" @@ -245,7 +248,7 @@ void MainWindow::openDialog() //! [17] void MainWindow::printFile() { -#if !defined(QT_NO_PRINTER) && !defined(QT_NO_PRINTDIALOG) +#if QT_CONFIG(printdialog) QTextEdit *editor = static_cast(letters->currentWidget()); //! [18] QPrinter printer; -- cgit v1.2.3