summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/chip
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/graphicsview/chip')
-rw-r--r--examples/widgets/graphicsview/chip/view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/graphicsview/chip/view.cpp b/examples/widgets/graphicsview/chip/view.cpp
index 21998dc2df..d6fec778c2 100644
--- a/examples/widgets/graphicsview/chip/view.cpp
+++ b/examples/widgets/graphicsview/chip/view.cpp
@@ -264,7 +264,7 @@ void View::toggleAntialiasing()
void View::print()
{
-#if QT_CONFIG(printdialog)
+#if defined(QT_PRINTSUPPORT_LIB) && QT_CONFIG(printdialog)
QPrinter printer;
QPrintDialog dialog(&printer, this);
if (dialog.exec() == QDialog::Accepted) {