673 for(
int ii = 0; ii < values.
count(); ++ii) {
676 if(value.
userType() == qMetaTypeId<QDeclarativeCustomParserNode>()) {
697 for(
int jj = 0; jj < props.
count(); ++jj) {
703 if (nodeProp.
name() ==
"id") {
709 int ref = data.
count();
736 int ref = data.
count();
739 d += char(variant.
type());
744 d +=
QByteArray( reinterpret_cast<const char*>(&temp),
sizeof(
double));
764 d +=
QByteArray( reinterpret_cast<const char*>(&temp),
sizeof(
double));
The QVariant class acts like a union for the most common Qt data types.
QList< QDeclarativeCustomParserProperty > properties() const
const QMetaObject * resolveType(const QByteArray &) const
Resolves name to a type, or 0 if it is not a type.
QByteArray & append(char c)
Appends the character ch to this byte array.
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.
QList< QVariant > assignedValues() const
static const QMetaObject staticMetaObject
This variable stores the meta-object for the class.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
int count(const T &t) const
Returns the number of occurrences of value in the list.
bool startsWith(const QByteArray &a) const
Returns true if this byte array starts with byte array ba; otherwise returns false.
void error(const QString &description)
Reports an error with the given description.
bool definesEmptyList(const QString &)
const T & at(int i) const
Returns the item at index position i in the list.
QByteArray mid(int index, int len=-1) const
Returns a byte array containing len bytes from this byte array, starting at position pos...
QByteArray listElementTypeName
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
int length() const
Same as size().
int userType() const
Returns the storage type of the value stored in the variant.
bool compileProperty(const QDeclarativeCustomParserProperty &prop, QList< ListInstruction > &instr, QByteArray &data)
int count(char c) const
Returns the number of occurrences of character ch in the byte array.
T qvariant_cast(const QVariant &)
int evaluateEnum(const QByteArray &) const
If script is a simply enum expression (eg.
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
bool endsWith(const QByteArray &a) const
Returns true if this byte array ends with byte array ba; otherwise returns false. ...