13QQQmlJSDeprecation QQmlJSAnnotation::deprecation()
const {
14 Q_ASSERT(isDeprecation());
15 QQQmlJSDeprecation deprecation;
16 if (
const auto it = bindings.find(u"reason"_s); it != bindings.end()) {
17 if (
auto v = get_if<QString>(&it.value()))
18 deprecation.reason = *v;
32size_t qHash(
const QQmlJSAnnotation &annotation, size_t seed)
noexcept
34 QtPrivate::QHashCombine combine(seed);
35 seed = combine(seed, annotation.name);
37 for (
auto it = annotation.bindings.constBegin(); it != annotation.bindings.constEnd(); ++it) {
38 size_t h = combine(seed, it.key());
41 const auto &var = it.value();
43 if (var.valueless_by_exception())
46 if (
auto v = get_if<
double>(&var))
47 seed += combine(h, *v);
48 else if (
auto v = get_if<QString>(&var))
49 seed += combine(h, *v);