Qt 4.8
|
The QDeclarativeDomValueLiteral class represents a literal value. More...
#include <qdeclarativedom_p.h>
Public Functions | |
QString | literal () const |
Return the literal value. More... | |
QDeclarativeDomValueLiteral & | operator= (const QDeclarativeDomValueLiteral &) |
Assign other to this QDeclarativeDomValueLiteral. More... | |
QDeclarativeDomValueLiteral () | |
Construct an empty QDeclarativeDomValueLiteral. More... | |
QDeclarativeDomValueLiteral (const QDeclarativeDomValueLiteral &) | |
Create a copy of other QDeclarativeDomValueLiteral. More... | |
~QDeclarativeDomValueLiteral () | |
Destroy the QDeclarativeDomValueLiteral. More... | |
Properties | |
QSharedDataPointer< QDeclarativeDomBasicValuePrivate > | d |
Friends | |
class | QDeclarativeDomValue |
The QDeclarativeDomValueLiteral class represents a literal value.
A literal value is a simple value, written inline with the QML. In the example below, the "x", "y" and "color" properties are being assigned literal values.
Definition at line 201 of file qdeclarativedom_p.h.
QDeclarativeDomValueLiteral::QDeclarativeDomValueLiteral | ( | ) |
Construct an empty QDeclarativeDomValueLiteral.
Definition at line 994 of file qdeclarativedom.cpp.
QDeclarativeDomValueLiteral::QDeclarativeDomValueLiteral | ( | const QDeclarativeDomValueLiteral & | other | ) |
Create a copy of other QDeclarativeDomValueLiteral.
Definition at line 1002 of file qdeclarativedom.cpp.
QDeclarativeDomValueLiteral::~QDeclarativeDomValueLiteral | ( | ) |
Destroy the QDeclarativeDomValueLiteral.
Definition at line 1010 of file qdeclarativedom.cpp.
QString QDeclarativeDomValueLiteral::literal | ( | ) | const |
Return the literal value.
In the example below, the literal value will be the string "10".
Definition at line 1031 of file qdeclarativedom.cpp.
QDeclarativeDomValueLiteral & QDeclarativeDomValueLiteral::operator= | ( | const QDeclarativeDomValueLiteral & | other | ) |
Assign other to this QDeclarativeDomValueLiteral.
Definition at line 1017 of file qdeclarativedom.cpp.
|
friend |
Definition at line 212 of file qdeclarativedom_p.h.
|
private |
Definition at line 213 of file qdeclarativedom_p.h.
Referenced by literal(), operator=(), and QDeclarativeDomValue::toLiteral().