7#include "private/qv4string_p.h"
8#include "private/qv4object_p.h"
9#include "private/qv4context_p.h"
25 const QV4::Object *
o = QJSValuePrivate::asManagedType<QV4::Object>(&
v);
30 object.set(
e,
o->asReturnedValue());
56 return (
val &&
val->isObject());
150 return key->toStringOrSymbol(d_ptr->
engine)->toQString();
QScopedPointer< QV4::OwnPropertyKeyIterator > iterator
QV4::PersistentValue currentKey
QV4::PersistentValue nextKey
void init(const QJSValue &v)
QV4::PersistentValue object
QJSValueIteratorPrivate(const QJSValue &v)
QV4::ExecutionEngine * engine
The QJSValueIterator class provides a Java-style iterator for QJSValue.
QJSValueIterator & operator=(QJSValue &value)
Makes the iterator operate on object.
bool hasNext() const
Returns true if there is at least one item ahead of the iterator (i.e.
~QJSValueIterator()
Destroys the iterator.
QJSValueIterator(const QJSValue &value)
Constructs an iterator for traversing object.
QJSValue value() const
Returns the value of the last property that was jumped over using next().
QString name() const
Returns the name of the last property that was jumped over using next().
bool next()
Advances the iterator by one position.
static QJSValue fromReturnedValue(QV4::ReturnedValue d)
static QV4::ExecutionEngine * engine(const QJSValue *jsval)
The QJSValue class acts as a container for Qt/JavaScript data types.
void reset(T *other=nullptr) noexcept(noexcept(Cleanup::cleanup(std::declval< T * >())))
Deletes the existing object it is pointing to (if any), and sets its pointer to other.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Managed * asManaged() const
ReturnedValue value() const
void set(ExecutionEngine *engine, const Value &value)
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
ReturnedValue catchException(StackTrace *trace=nullptr)
virtual PropertyKey next(const Object *o, Property *p=nullptr, PropertyAttributes *attrs=nullptr)=0
static PropertyKey fromId(quint64 id)
bool hasException() const