42 #include "private/qdeclarativelistscriptclass_p.h" 44 #include "private/qdeclarativeengine_p.h" 45 #include "private/qdeclarativeguard_p.h" 46 #include "private/qdeclarativelist_p.h" 73 if (!
object || propId == -1)
79 void *args[] = { &data->
property, 0 };
82 return newObject(scriptEngine,
this, data);
94 return newObject(scriptEngine,
this, data);
97 QScriptClass::QueryFlags
99 QScriptClass::QueryFlags flags)
129 return Value(scriptEngine, count);
130 else if (lastIndex < count && data->
property.at)
The QVariant class acts like a union for the most common Qt data types.
static QScriptEngine * getScriptEngine(QDeclarativeEngine *e)
#define QT_END_NAMESPACE
This macro expands to.
~QDeclarativeListScriptClass()
static QScriptValue newObject(QScriptEngine *, QScriptDeclarativeClass *, Object *)
QDeclarativeListScriptClass(QDeclarativeEngine *)
PersistentIdentifier m_lengthId
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static Object * object(const QScriptValue &)
The QObject class is the base class of all Qt objects.
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
PersistentIdentifier createPersistentIdentifier(const QString &)
The QScriptDeclarativeClass::Value class acts as a container for JavaScript data types.
virtual QScriptClass::QueryFlags queryProperty(Object *, const Identifier &, QScriptClass::QueryFlags flags)
QDeclarativeGuard< QObject > object
QScriptValue newQObject(QObject *, int type=QMetaType::QObjectStar)
The QScriptEngine class provides an environment for evaluating Qt Script code.
#define QT_BEGIN_NAMESPACE
This macro expands to.
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.
QDeclarativeObjectScriptClass * objectClass
quint32 toArrayIndex(const Identifier &, bool *ok)
The QDeclarativeEngine class provides an environment for instantiating QML components.
virtual QVariant toVariant(Object *, bool *ok)
QScriptValue newList(QObject *, int, int)
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...
QScriptValue nullValue()
Returns a QScriptValue of the primitive type Null.
virtual Value property(Object *, const Identifier &)