Manual dialog test: Build also when QtPrintSupport is not available.

Fixes the build on WinRT.

Change-Id: I68510b70b61433ceed6bf06a31424f93a02230dc
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
This commit is contained in:
Friedemann Kleint 2015-12-03 16:43:42 +01:00
parent 68a2f62065
commit 2366ecfb2d

View File

@ -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
}