SOURCES += main.cpp
SOURCES += mainwindow.cpp view.cpp chip.cpp
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
contains(QT_CONFIG, opengl):QT += opengl
build_all:!build_pass {
#include "view.h"
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
#include <QPrintDialog>
-
+#endif
#ifndef QT_NO_OPENGL
#include <QtOpenGL>
#endif
-
#include <qmath.h>
void GraphicsView::wheelEvent(QWheelEvent *e)
****************************************************************************/
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
#include <QPrintDialog>
+#endif
#include "imagemodel.h"
#include "mainwindow.h"
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/pixelator
INSTALLS += target sources
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
****************************************************************************/
#include "printview.h"
+
+#ifndef QT_NO_PRINTER
#include <QPrinter>
+#endif
#include <QStyleOptionViewItem>
PrintView::PrintView()
****************************************************************************/
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
#include <QPrintDialog>
#include <QPrintPreviewDialog>
+#endif
#include "spreadsheet.h"
#include "spreadsheetdelegate.h"
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
#unix:contains(QT_CONFIG, dbus):QT += dbus widgets
HEADERS += printview.h spreadsheet.h spreadsheetdelegate.h spreadsheetitem.h
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/mainwindows/dockwidgets
INSTALLS += target sources
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
simulator: warning(This example might not fully work on Simulator platform)
//! [0]
#include <QtWidgets>
+#ifndef QT_NO_PRINTDIALOG
#include <QtPrintSupport>
+#endif
+
#include "mainwindow.h"
//! [0]
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/fontsampler
INSTALLS += target sources
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
****************************************************************************/
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
#include <QPrintDialog>
#include <QPrintPreviewDialog>
+#endif
#include "mainwindow.h"
****************************************************************************/
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
#include <QPrintDialog>
+#endif
#include "detailsdialog.h"
#include "mainwindow.h"
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/orderform
INSTALLS += target sources
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
#include <QFontDatabase>
#include <QMenu>
#include <QMenuBar>
-#include <QPrintDialog>
-#include <QPrinter>
#include <QTextCodec>
#include <QTextEdit>
#include <QToolBar>
#include <QtDebug>
#include <QCloseEvent>
#include <QMessageBox>
-#include <QPrintPreviewDialog>
#include <QMimeData>
+#ifndef QT_NO_PRINTER
+#include <QPrintDialog>
+#include <QPrinter>
+#include <QPrintPreviewDialog>
+#endif
#ifdef Q_OS_MAC
const QString rsrcPath = ":/images/mac";
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/richtext/textedit
INSTALLS += target sources
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fingerpaint.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/touch/fingerpaint
INSTALLS += target sources
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
simulator: warning(This example might not fully work on Simulator platform)
****************************************************************************/
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
#include <QPrintDialog>
+#endif
#include "scribblearea.h"
****************************************************************************/
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrintDialog>
+#endif
#include "imageviewer.h"
#define IMAGEVIEWER_H
#include <QMainWindow>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
+#endif
QT_BEGIN_NAMESPACE
class QAction;
wince*: {
DEPLOYMENT_PLUGIN += qjpeg qgif
}
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
simulator: warning(This example might not fully work on Simulator platform)
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/widgets/scribble
INSTALLS += target sources
-QT += widgets printsupport
+QT += widgets
+!isEmpty(QT.printsupport.name): QT += printsupport
****************************************************************************/
#include <QtWidgets>
+#ifndef QT_NO_PRINTER
#include <QPrinter>
#include <QPrintDialog>
+#endif
#include "scribblearea.h"