#include <qdeclarativepropertychanges_p.h>
◆ QDeclarativePropertyChangesParser()
QDeclarativePropertyChangesParser::QDeclarativePropertyChangesParser |
( |
| ) |
|
|
inline |
◆ compile()
Implements QDeclarativeCustomParser.
Definition at line 278 of file qdeclarativepropertychanges.cpp.
281 for(
int ii = 0; ii < props.
count(); ++ii)
288 for(
int ii = 0; ii < data.
count(); ++ii) {
The QVariant class acts like a union for the most common Qt data types.
QDeclarativeBinding::Identifier rewriteBinding(const QString &, const QByteArray &)
Rewrites expression and returns an identifier that can be used to construct the binding later...
void compileList(QList< QPair< QByteArray, QVariant > > &list, const QByteArray &pre, const QDeclarativeCustomParserProperty &prop)
The QByteArray class provides an array of bytes.
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
const T & at(int i) const
Returns the item at index position i in the list.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
static const char * data(const QByteArray &arr)
T qvariant_cast(const QVariant &)
The QDataStream class provides serialization of binary data to a QIODevice.
The QList class is a template class that provides lists.
◆ compileList()
Definition at line 250 of file qdeclarativepropertychanges.cpp.
257 for (
int ii = 0; ii < values.
count(); ++ii) {
260 if (value.
userType() == qMetaTypeId<QDeclarativeCustomParserNode>()) {
261 error(qvariant_cast<QDeclarativeCustomParserNode>(value),
264 }
else if(value.
userType() == qMetaTypeId<QDeclarativeCustomParserProperty>()) {
The QVariant class acts like a union for the most common Qt data types.
void compileList(QList< QPair< QByteArray, QVariant > > &list, const QByteArray &pre, const QDeclarativeCustomParserProperty &prop)
The QByteArray class provides an array of bytes.
QList< QVariant > assignedValues() const
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.
void error(const QString &description)
Reports an error with the given description.
const T & at(int i) const
Returns the item at index position i in the list.
int userType() const
Returns the storage type of the value stored in the variant.
Q_OUTOFLINE_TEMPLATE QPair< T1, T2 > qMakePair(const T1 &x, const T2 &y)
T qvariant_cast(const QVariant &)
◆ setCustomData()
void QDeclarativePropertyChangesParser::setCustomData |
( |
QObject * |
object, |
|
|
const QByteArray & |
data |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: