aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi
diff options
context:
space:
mode:
authorJari Helaakoski <jari.helaakoski@qt.io>2024-04-10 15:33:07 +0300
committerJari Helaakoski <jari.helaakoski@qt.io>2024-04-11 13:00:53 +0000
commit1fce010d8089e1bb124c9cb9793eec1fd7e30af7 (patch)
tree6da3a862901dfdea3a4678d0e348788f279f6533 /src/qml/jsapi
parent4b633eb984305cee8a2b550781cf0ad7a75c13f0 (diff)
Fix build with disable-deprecated-up-to configuration
Change-Id: I4b2d0e361a2e4fa14c89e1d374bd4244a4b9e0fd Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsapi')
-rw-r--r--src/qml/jsapi/qjsvalue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsapi/qjsvalue.cpp b/src/qml/jsapi/qjsvalue.cpp
index 56ce04c631..5d320809dd 100644
--- a/src/qml/jsapi/qjsvalue.cpp
+++ b/src/qml/jsapi/qjsvalue.cpp
@@ -451,6 +451,7 @@ bool QJSValue::isCallable() const
return QJSValuePrivate::asManagedType<FunctionObject>(this);
}
+#if QT_DEPRECATED_SINCE(6, 9)
/*!
\deprecated [6.9]
Returns true if this QJSValue is a variant value;
@@ -475,6 +476,7 @@ bool QJSValue::isVariant() const
return true;
return false;
}
+#endif
/*!
Returns the string value of this QJSValue, as defined in