summaryrefslogtreecommitdiff
path: root/tests/auto/testplugin/testplugin.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/testplugin/testplugin.pro')
-rw-r--r--tests/auto/testplugin/testplugin.pro4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/testplugin/testplugin.pro b/tests/auto/testplugin/testplugin.pro
index d656517f..d25d3a9f 100644
--- a/tests/auto/testplugin/testplugin.pro
+++ b/tests/auto/testplugin/testplugin.pro
@@ -3,7 +3,9 @@ CONFIG += plugin
TARGET = testplugin
TARGETPATH = QtQuickControlsTests
-QT += qml quick widgets
+QT += qml quick
+qtHaveModule(widgets) { QT += widgets }
+
QMLDIR = $$PWD/$$TARGETPATH/qmldir