Qt 4.8
|
#include <qdeclarativedom_p.h>
Public Functions | |
QDeclarativeDomProperty | defaultValue () const |
Returns the default value as a QDeclarativeDomProperty. More... | |
bool | isAlias () const |
Returns true if this dynamic property is an alias for another property, false otherwise. More... | |
bool | isDefaultProperty () const |
Return true if this property is used as a default property in the QML document. More... | |
bool | isValid () const |
int | length () const |
Returns the length in the input data from where the property ID started upto the end of it, or 0 if the property is invalid. More... | |
QDeclarativeDomDynamicProperty & | operator= (const QDeclarativeDomDynamicProperty &) |
Assign other to this QDeclarativeDomDynamicProperty. More... | |
int | position () const |
Returns the position in the input data where the property ID startd, or 0 if the property is invalid. More... | |
QByteArray | propertyName () const |
Return the name of this dynamic property. More... | |
int | propertyType () const |
Returns the type of the dynamic property. More... | |
QByteArray | propertyTypeName () const |
QDeclarativeDomDynamicProperty () | |
Construct an invalid QDeclarativeDomDynamicProperty. More... | |
QDeclarativeDomDynamicProperty (const QDeclarativeDomDynamicProperty &) | |
Create a copy of other QDeclarativeDomDynamicProperty. More... | |
~QDeclarativeDomDynamicProperty () | |
Destroy the QDeclarativeDomDynamicProperty. More... | |
Properties | |
QSharedDataPointer< QDeclarativeDomDynamicPropertyPrivate > | d |
Friends | |
class | QDeclarativeDomObject |
Definition at line 128 of file qdeclarativedom_p.h.
QDeclarativeDomDynamicProperty::QDeclarativeDomDynamicProperty | ( | ) |
Construct an invalid QDeclarativeDomDynamicProperty.
Definition at line 405 of file qdeclarativedom.cpp.
QDeclarativeDomDynamicProperty::QDeclarativeDomDynamicProperty | ( | const QDeclarativeDomDynamicProperty & | other | ) |
Create a copy of other QDeclarativeDomDynamicProperty.
Definition at line 413 of file qdeclarativedom.cpp.
QDeclarativeDomDynamicProperty::~QDeclarativeDomDynamicProperty | ( | ) |
Destroy the QDeclarativeDomDynamicProperty.
Definition at line 421 of file qdeclarativedom.cpp.
QDeclarativeDomProperty QDeclarativeDomDynamicProperty::defaultValue | ( | ) | const |
Returns the default value as a QDeclarativeDomProperty.
Definition at line 540 of file qdeclarativedom.cpp.
bool QDeclarativeDomDynamicProperty::isAlias | ( | ) | const |
Returns true if this dynamic property is an alias for another property, false otherwise.
Definition at line 557 of file qdeclarativedom.cpp.
bool QDeclarativeDomDynamicProperty::isDefaultProperty | ( | ) | const |
Return true if this property is used as a default property in the QML document.
The above two examples return the same DOM tree, except that the second has the default property flag set on the text property. Observe that whether or not a property has isDefaultProperty set is determined by how the property is used, and not only by whether the property is the types default property.
Definition at line 529 of file qdeclarativedom.cpp.
bool QDeclarativeDomDynamicProperty::isValid | ( | ) | const |
Definition at line 434 of file qdeclarativedom.cpp.
Referenced by defaultValue(), isAlias(), isDefaultProperty(), length(), position(), propertyName(), propertyType(), and propertyTypeName().
int QDeclarativeDomDynamicProperty::length | ( | ) | const |
Returns the length in the input data from where the property ID started upto the end of it, or 0 if the property is invalid.
Definition at line 581 of file qdeclarativedom.cpp.
QDeclarativeDomDynamicProperty & QDeclarativeDomDynamicProperty::operator= | ( | const QDeclarativeDomDynamicProperty & | other | ) |
Assign other to this QDeclarativeDomDynamicProperty.
Definition at line 428 of file qdeclarativedom.cpp.
int QDeclarativeDomDynamicProperty::position | ( | ) | const |
Returns the position in the input data where the property ID startd, or 0 if the property is invalid.
Definition at line 569 of file qdeclarativedom.cpp.
QByteArray QDeclarativeDomDynamicProperty::propertyName | ( | ) | const |
Return the name of this dynamic property.
As illustrated above, a dynamic property name can have a name and a default value ("10").
Definition at line 451 of file qdeclarativedom.cpp.
Referenced by defaultValue().
int QDeclarativeDomDynamicProperty::propertyType | ( | ) | const |
Returns the type of the dynamic property.
Note that when the property is an alias property, this will return -1. Use QDeclarativeDomProperty::isAlias() to check if the property is an alias.
Definition at line 464 of file qdeclarativedom.cpp.
QByteArray QDeclarativeDomDynamicProperty::propertyTypeName | ( | ) | const |
Definition at line 506 of file qdeclarativedom.cpp.
|
friend |
Definition at line 151 of file qdeclarativedom_p.h.
|
private |
Definition at line 152 of file qdeclarativedom_p.h.
Referenced by defaultValue(), QDeclarativeDomObject::dynamicProperties(), QDeclarativeDomObject::dynamicProperty(), isAlias(), isDefaultProperty(), isValid(), length(), operator=(), position(), propertyName(), propertyType(), and propertyTypeName().