42 #include "private/qdeclarativetypenamescriptclass_p.h" 44 #include "private/qdeclarativeengine_p.h" 45 #include "private/qdeclarativetypenamecache_p.h" 88 QScriptClass::QueryFlags
90 QScriptClass::QueryFlags flags)
110 }
else if (data->
type) {
129 }
else if (data->
object) {
132 if (!
object)
return 0;
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)
TypeNameData(QObject *o, QDeclarativeTypeNameCache *n, QDeclarativeTypeNameScriptClass::TypeNameMode m)
TypeNameData(QObject *o, QDeclarativeType *t, QDeclarativeTypeNameScriptClass::TypeNameMode m)
virtual QScriptClass::QueryFlags queryProperty(Object *, const Identifier &, QScriptClass::QueryFlags flags)
#define QT_END_NAMESPACE
This macro expands to.
bool startsWithUpper(const Identifier &)
static QScriptValue newObject(QScriptEngine *, QScriptDeclarativeClass *, Object *)
QScriptClass::QueryFlags queryProperty(QObject *, const Identifier &, QScriptClass::QueryFlags flags, QDeclarativeContextData *evalContext, QueryHints hints=0)
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
The QByteArray class provides an array of bytes.
virtual void setProperty(Object *, const Identifier &name, const QScriptValue &)
const QMetaObject * baseMetaObject() const
int attachedPropertiesId() const
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
QDeclarativeTypeNameScriptClass::TypeNameMode mode
The QScriptDeclarativeClass::Value class acts as a container for JavaScript data types.
Q_DECLARATIVE_EXPORT QObject * qmlAttachedPropertiesObjectById(int, const QObject *, bool create=true)
The QScriptEngine class provides an environment for evaluating Qt Script code.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDeclarativeTypeNameScriptClass(QDeclarativeEngine *)
QScriptValue newObject(QObject *, QDeclarativeType *, TypeNameMode=IncludeEnums)
QScriptEngine * engine() const
static const char * data(const QByteArray &arr)
QDeclarativeTypeNameCache * typeNamespace
QDeclarativeObjectScriptClass * objectClass
const char * constData() const
Returns a pointer to the data stored in the byte array.
virtual Value property(Object *, const Identifier &)
The QDeclarativeEngine class provides an environment for instantiating QML components.
~QDeclarativeTypeNameScriptClass()
void setProperty(QObject *, const Identifier &name, const QScriptValue &, QScriptContext *context, QDeclarativeContextData *evalContext=0)
Data * data(const QString &) const
QScriptContext * context() const
The QScriptValue class acts as a container for the Qt Script data types.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QString toString(const Identifier &)
Value property(QObject *, const Identifier &)