4#ifndef QQMLSCRIPTSTRING_H
5#define QQMLSCRIPTSTRING_H
7#include <QtQml/qtqmlglobal.h>
9#include <QtCore/qstring.h>
10#include <QtCore/qshareddata.h>
11#include <QtCore/qmetatype.h>
18class QQmlScriptStringPrivate;
19class QQmlObjectCreator;
21 struct QObjectWrapper;
28 QQmlScriptString(
const QQmlScriptString &);
31 QQmlScriptString &operator=(
const QQmlScriptString &);
33 bool operator==(
const QQmlScriptString &)
const;
34 bool operator!=(
const QQmlScriptString &)
const;
38 bool isUndefinedLiteral()
const;
39 bool isNullLiteral()
const;
40 QString stringLiteral()
const;
41 qreal numberLiteral(
bool *ok)
const;
42 bool booleanLiteral(
bool *ok)
const;
45 QQmlScriptString(
const QString &script, QQmlContext *context, QObject *scope);
46 QSharedDataPointer<QQmlScriptStringPrivate> d;
48 friend class QQmlObjectCreator;
49 friend class QQmlScriptStringPrivate;
50 friend class QQmlExpression;
51 friend class QQmlBinding;
52 friend class QQmlPropertyBinding;
53 friend struct QV4::QObjectWrapper;
Q_ALWAYS_INLINE bool write(const QV4::Value &result, bool isUndefined, QQmlPropertyData::WriteFlags flags) override final
Q_ALWAYS_INLINE bool write(void *result, QMetaType type, bool isUndefined, QQmlPropertyData::WriteFlags flags) override final
Q_ALWAYS_INLINE bool doStore(T value, const QQmlPropertyData *pd, QQmlPropertyData::WriteFlags flags) const
QObjectPointerBinding(QMetaType propertyType)
Q_ALWAYS_INLINE bool write(const QV4::Value &result, bool isUndefined, QQmlPropertyData::WriteFlags flags) override final
Q_ALWAYS_INLINE bool write(void *result, QMetaType type, bool isUndefined, QQmlPropertyData::WriteFlags flags) override final
The QQmlScriptString class encapsulates a script and its context.
QString bindingValue() const override
QQmlSourceLocation sourceLocation() const override final
QQmlTranslationBindingFromBinding(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QV4::CompiledData::Binding *binding)
QQmlSourceLocation sourceLocation() const override final
QQmlTranslationBindingFromTranslationInfo(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QQmlTranslation &translationData, quint16 line, quint16 column)
virtual QString bindingValue() const override
QQmlTranslationBinding(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit)
void doUpdate(const DeleteWatcher &watcher, QQmlPropertyData::WriteFlags flags, QV4::Scope &scope) override final
static void onLanguageChange(QPropertyObserver *observer, QUntypedPropertyData *)
virtual QString bindingValue() const =0
bool hasDependencies() const override final
Combined button and popup list for selecting options.