50QQmlScriptString QQmlScriptStringPrivate::create(
const QString &script, QQmlContext *context,
53 return QQmlScriptString(script, context, scope);
67QQmlScriptString::QQmlScriptString(
const QString &script, QQmlContext *context, QObject *scope)
104bool QQmlScriptString::operator==(
const QQmlScriptString &other)
const
111 if (d->isNumberLiteral || other.d->isNumberLiteral)
112 return d->isNumberLiteral && other.d->isNumberLiteral && d->numberValue == other.d->numberValue;
114 if (d->isStringLiteral || other.d->isStringLiteral)
115 return d->isStringLiteral && other.d->isStringLiteral && d->script == other.d->script;
117 if (d->script == QLatin1String(
"true") ||
118 d->script == QLatin1String(
"false") ||
119 d->script == QLatin1String(
"undefined") ||
120 d->script == QLatin1String(
"null"))
121 return d->script == other.d->script;
123 return d->context == other.d->context &&
124 d->scope == other.d->scope &&
125 d->script == other.d->script &&
126 d->bindingId == other.d->bindingId;