diff options
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/unit/qpaintervideosurface/qpaintervideosurface.pro | 4 | ||||
-rw-r--r-- | tests/auto/unit/unit.pro | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/unit/qpaintervideosurface/qpaintervideosurface.pro b/tests/auto/unit/qpaintervideosurface/qpaintervideosurface.pro index 4408c4f54..4f5120245 100644 --- a/tests/auto/unit/qpaintervideosurface/qpaintervideosurface.pro +++ b/tests/auto/unit/qpaintervideosurface/qpaintervideosurface.pro @@ -2,14 +2,12 @@ CONFIG += testcase TARGET = tst_qpaintervideosurface QT += multimedia-private multimediawidgets-private testlib -contains(QT_CONFIG, opengl) | contains(QT_CONFIG, opengles2) { +qtHaveModule(opengl) { QT += opengl } else { DEFINES += QT_NO_OPENGL } -contains(QT_CONFIG, opengl): QT += opengl - SOURCES += tst_qpaintervideosurface.cpp QT+=widgets diff --git a/tests/auto/unit/unit.pro b/tests/auto/unit/unit.pro index a79f7fa4d..96dbf0137 100644 --- a/tests/auto/unit/unit.pro +++ b/tests/auto/unit/unit.pro @@ -1,4 +1,4 @@ TEMPLATE = subdirs SUBDIRS += multimedia.pro -!isEmpty(QT.widgets.name): SUBDIRS += multimediawidgets.pro +qtHaveModule(widgets): SUBDIRS += multimediawidgets.pro |