54QQmlScriptString::QQmlScriptString(
const QString &script, QQmlContext *context, QObject *scope)
91bool QQmlScriptString::operator==(
const QQmlScriptString &other)
const
98 if (d->isNumberLiteral || other.d->isNumberLiteral)
99 return d->isNumberLiteral && other.d->isNumberLiteral && d->numberValue == other.d->numberValue;
101 if (d->isStringLiteral || other.d->isStringLiteral)
102 return d->isStringLiteral && other.d->isStringLiteral && d->script == other.d->script;
104 if (d->script == QLatin1String(
"true") ||
105 d->script == QLatin1String(
"false") ||
106 d->script == QLatin1String(
"undefined") ||
107 d->script == QLatin1String(
"null"))
108 return d->script == other.d->script;
110 return d->context == other.d->context &&
111 d->scope == other.d->scope &&
112 d->script == other.d->script &&
113 d->bindingId == other.d->bindingId;