summaryrefslogtreecommitdiffstats
path: root/tests/manual/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/dialogs')
-rw-r--r--tests/manual/dialogs/dialogs.pro17
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/manual/dialogs/dialogs.pro b/tests/manual/dialogs/dialogs.pro
index 21ebf9b622..d765b8cf05 100644
--- a/tests/manual/dialogs/dialogs.pro
+++ b/tests/manual/dialogs/dialogs.pro
@@ -1,11 +1,20 @@
QT += core gui
-greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
+
+greaterThan(QT_MAJOR_VERSION, 4) {
+ QT += widgets
+ qtHaveModule(printsupport): QT += printsupport
+}
TARGET = dialogs
TEMPLATE = app
SOURCES += main.cpp filedialogpanel.cpp colordialogpanel.cpp fontdialogpanel.cpp \
- wizardpanel.cpp messageboxpanel.cpp printdialogpanel.cpp utils.cpp
+ wizardpanel.cpp messageboxpanel.cpp utils.cpp
HEADERS += filedialogpanel.h colordialogpanel.h fontdialogpanel.h \
- wizardpanel.h messageboxpanel.h printdialogpanel.h utils.h
-FORMS += printdialogpanel.ui
+ wizardpanel.h messageboxpanel.h utils.h
+
+!contains(DEFINES, QT_NO_PRINTER) {
+ SOURCES += printdialogpanel.cpp
+ HEADERS += printdialogpanel.h
+ FORMS += printdialogpanel.ui
+}