#include <qdeclarativelistscriptclass_p.h>
|
QScriptValue | newList (QObject *, int, int) |
|
QScriptValue | newList (const QDeclarativeListProperty< QObject > &, int) |
|
| QDeclarativeListScriptClass (QDeclarativeEngine *) |
|
| ~QDeclarativeListScriptClass () |
|
virtual Value | call (Object *, QScriptContext *) |
|
virtual bool | compare (Object *, Object *) |
|
QScriptContext * | context () const |
|
PersistentIdentifier | createPersistentIdentifier (const QString &) |
|
PersistentIdentifier | createPersistentIdentifier (const Identifier &) |
|
QScriptEngine * | engine () const |
|
virtual bool | isQObject () const |
|
virtual QScriptValue::PropertyFlags | propertyFlags (Object *, const Identifier &) |
|
virtual QStringList | propertyNames (Object *) |
|
| QScriptDeclarativeClass (QScriptEngine *engine) |
|
virtual void | setProperty (Object *, const Identifier &name, const QScriptValue &) |
|
void | setSupportsCall (bool) |
|
bool | startsWithUpper (const Identifier &) |
|
bool | supportsCall () const |
|
quint32 | toArrayIndex (const Identifier &, bool *ok) |
|
virtual QObject * | toQObject (Object *, bool *ok=0) |
|
QString | toString (const Identifier &) |
|
virtual | ~QScriptDeclarativeClass () |
|
|
typedef void * | Identifier |
|
static QScriptValue | function (const QScriptValue &, const Identifier &) |
|
static Value | functionValue (const QScriptValue &, const Identifier &) |
|
static QScriptValue | newObject (QScriptEngine *, QScriptDeclarativeClass *, Object *) |
|
static Value | newObjectValue (QScriptEngine *, QScriptDeclarativeClass *, Object *) |
|
static QScriptValue | newStaticScopeObject (QScriptEngine *, int propertyCount, const QString *names, const QScriptValue *values, const QScriptValue::PropertyFlags *flags) |
| Creates a scope object with a fixed set of undeletable properties. More...
|
|
static QScriptValue | newStaticScopeObject (QScriptEngine *) |
| Creates a static scope object that's initially empty, but to which new properties can be added. More...
|
|
static Object * | object (const QScriptValue &) |
|
static QScriptValue | property (const QScriptValue &, const Identifier &) |
|
static Value | propertyValue (const QScriptValue &, const Identifier &) |
|
static QScriptContext * | pushCleanContext (QScriptEngine *) |
| Enters a new execution context and returns the associated QScriptContext object. More...
|
|
static QScriptValue | scopeChainValue (QScriptContext *, int index) |
|
static QScriptDeclarativeClass * | scriptClass (const QScriptValue &) |
|
QScopedPointer< QScriptDeclarativeClassPrivate > | d_ptr |
|
◆ QDeclarativeListScriptClass()
Definition at line 56 of file qdeclarativelistscriptclass.cpp.
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)
PersistentIdentifier m_lengthId
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
PersistentIdentifier createPersistentIdentifier(const QString &)
The QScriptEngine class provides an environment for evaluating Qt Script code.
QScriptEngine * engine() const
QScriptDeclarativeClass(QScriptEngine *engine)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ ~QDeclarativeListScriptClass()
QDeclarativeListScriptClass::~QDeclarativeListScriptClass |
( |
| ) |
|
◆ newList() [1/2]
QScriptValue QDeclarativeListScriptClass::newList |
( |
QObject * |
object, |
|
|
int |
propId, |
|
|
int |
propType |
|
) |
| |
Definition at line 69 of file qdeclarativelistscriptclass.cpp.
Referenced by QDeclarativeContextScriptClass::property(), and QDeclarativeObjectScriptClass::property().
73 if (!
object || propId == -1)
79 void *args[] = { &data->
property, 0 };
82 return newObject(scriptEngine,
this, data);
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)
static QScriptValue newObject(QScriptEngine *, QScriptDeclarativeClass *, Object *)
static Object * object(const QScriptValue &)
QDeclarativeGuard< QObject > object
The QScriptEngine class provides an environment for evaluating Qt Script code.
QScriptEngine * engine() const
static const char * data(const QByteArray &arr)
QDeclarativeListProperty< QObject > property
QScriptValue nullValue()
Returns a QScriptValue of the primitive type Null.
◆ newList() [2/2]
Definition at line 85 of file qdeclarativelistscriptclass.cpp.
94 return newObject(scriptEngine,
this, data);
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)
static QScriptValue newObject(QScriptEngine *, QScriptDeclarativeClass *, Object *)
QDeclarativeGuard< QObject > object
The QScriptEngine class provides an environment for evaluating Qt Script code.
QScriptEngine * engine() const
static const char * data(const QByteArray &arr)
QDeclarativeListProperty< QObject > property
◆ property()
Reimplemented from QScriptDeclarativeClass.
Definition at line 117 of file qdeclarativelistscriptclass.cpp.
129 return Value(scriptEngine, count);
130 else if (lastIndex < count && data->
property.at)
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)
PersistentIdentifier m_lengthId
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
QDeclarativeGuard< QObject > object
QScriptValue newQObject(QObject *, int type=QMetaType::QObjectStar)
The QScriptEngine class provides an environment for evaluating Qt Script code.
QScriptEngine * engine() const
static const char * data(const QByteArray &arr)
QDeclarativeListProperty< QObject > property
QDeclarativeObjectScriptClass * objectClass
virtual Value property(Object *, const Identifier &)
◆ queryProperty()
QScriptClass::QueryFlags QDeclarativeListScriptClass::queryProperty |
( |
Object * |
object, |
|
|
const Identifier & |
name, |
|
|
QScriptClass::QueryFlags |
flags |
|
) |
| |
|
protectedvirtual |
Reimplemented from QScriptDeclarativeClass.
Definition at line 98 of file qdeclarativelistscriptclass.cpp.
PersistentIdentifier m_lengthId
quint32 toArrayIndex(const Identifier &, bool *ok)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ toVariant()
QVariant QDeclarativeListScriptClass::toVariant |
( |
Object * |
obj, |
|
|
bool * |
ok |
|
) |
| |
|
protectedvirtual |
Reimplemented from QScriptDeclarativeClass.
Definition at line 136 of file qdeclarativelistscriptclass.cpp.
The QVariant class acts like a union for the most common Qt data types.
QDeclarativeGuard< QObject > object
static QDeclarativeListReference init(const QDeclarativeListProperty< QObject > &, int, QDeclarativeEngine *)
QScriptEngine * engine() const
static const char * data(const QByteArray &arr)
QDeclarativeListProperty< QObject > property
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
◆ engine
◆ lastIndex
quint32 QDeclarativeListScriptClass::lastIndex |
|
private |
◆ m_lengthId
The documentation for this class was generated from the following files: