summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_configure.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/features/qt_configure.prf')
-rw-r--r--mkspecs/features/qt_configure.prf8
1 files changed, 5 insertions, 3 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index 72dd1c4c8d..2700b2eb80 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -1419,12 +1419,14 @@ defineTest(qtConfOutput_privateFeature) {
name = "$$eval($${1}.name)"
isEmpty(name): \
name = $$eval($${1}.feature)
+ feature = $$replace(name, [-+.], _)
$${2} {
- qtConfOutputVar(append, "publicPro", "QT_CONFIG", $$name)
+ qtConfOutputVar(append, "privatePro", "QT.global.enabled_features", $$name)
+ qtConfOutputSetDefine("privateHeader", "QT_FEATURE_$$feature", 1)
} else {
- f = $$upper($$replace(name, -, _))
- qtConfOutputVar(append, "privatePro", "DEFINES", "QT_NO_$$f")
+ qtConfOutputVar(append, "privatePro", "QT.global.disabled_features", $$name)
+ qtConfOutputSetDefine("privateHeader", "QT_FEATURE_$$feature", -1)
}
}