QgsPropertyValue node.
More...
#include <qgsprojectproperty.h>
Detailed Description
Constructor & Destructor Documentation
QgsPropertyValue::QgsPropertyValue |
( |
| ) |
|
|
inline |
QgsPropertyValue::QgsPropertyValue |
( |
const QVariant & |
value | ) |
|
|
inline |
virtual QgsPropertyValue::~QgsPropertyValue |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
int QgsPropertyValue::count |
( |
| ) |
const |
|
inline |
void QgsPropertyValue::dump |
( |
int |
tabs = 0 | ) |
const |
|
virtual |
dumps out the keys and values
- Parameters
-
tabs | is number of tabs to print; used for pretty-printing hierarchy |
Implements QgsProperty.
void QgsPropertyValue::entryList |
( |
QStringList & |
keyName, |
|
|
QStringList & |
entries |
|
) |
| const |
|
inline |
return keys that do not contain other keys
Since QgsPropertyValue isn't a key, don't do anything.
virtual bool QgsPropertyValue::isKey |
( |
| ) |
const |
|
inlinevirtual |
bool QgsPropertyValue::isLeaf |
( |
| ) |
const |
|
inlinevirtual |
returns true if is a leaf node
- Note
- I suppose, in a way, value nodes can also be qualified as leaf nodes even though we're only counting key nodes.
Implements QgsProperty.
virtual bool QgsPropertyValue::isValue |
( |
| ) |
const |
|
inlinevirtual |
bool QgsPropertyValue::readXML |
( |
QDomNode & |
keyNode | ) |
|
|
virtual |
restores property hierarchy to given Dom node
Used for restoring properties from project file
Implements QgsProperty.
QVariant QgsPropertyValue::value |
( |
| ) |
const |
|
inlinevirtual |
return the node's value
For QgsPropertyValue nodes, this is straightforward – just return the embedded QVariant, _value. For QgsPropertyKey, this means returning the QgsPropertyValue _value that is keyed by its name, if it exists; i.e., QgsPropertyKey "foo" will return the property value mapped to its name, "foo", in its QHash of QProperties.
Implements QgsProperty.
bool QgsPropertyValue::writeXML |
( |
const QString & |
nodeName, |
|
|
QDomElement & |
element, |
|
|
QDomDocument & |
document |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: