summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2020-03-05 10:06:24 +0100
committerOliver Wolff <oliver.wolff@qt.io>2020-03-05 15:11:36 +0100
commit7c7bd44669babe5eb9cbc0b803d43e8e2cf0518b (patch)
treefcf135af7136bb3e630d421d1ff0ceb81e7e8133 /examples/widgets/tutorials
parentd678827f11263cb7c53218448c9bcc9afbd1439f (diff)
examples: Fix build for configurations that do not have printsupport
printsupport features are only available if the module is available for the configuration. Every printer feature check has to be coupled with a check for the module itself. Change-Id: Id2ca84e71d5d74463d0ff35e8b18b252a779a883 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/tutorials')
-rw-r--r--examples/widgets/tutorials/notepad/notepad.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/tutorials/notepad/notepad.pro b/examples/widgets/tutorials/notepad/notepad.pro
index 6451f22735..efe16fc2a2 100644
--- a/examples/widgets/tutorials/notepad/notepad.pro
+++ b/examples/widgets/tutorials/notepad/notepad.pro
@@ -1,6 +1,8 @@
TEMPLATE = app
TARGET = notepad
+QT += widgets
+
qtHaveModule(printsupport): QT += printsupport
requires(qtConfig(fontdialog))