QGIS API Documentation
3.2.0-Bonn (bc43194)
|
Assorted helper methods for reading and writing chunks of XML. More...
#include <qgsxmlutils.h>
Static Public Member Functions | |
static QgsUnitTypes::DistanceUnit | readMapUnits (const QDomElement &element) |
Decodes a distance unit from a DOM element. More... | |
static QgsRectangle | readRectangle (const QDomElement &element) |
static QVariant | readVariant (const QDomElement &element) |
Read a QVariant from a QDomElement. More... | |
static QDomElement | writeMapUnits (QgsUnitTypes::DistanceUnit units, QDomDocument &doc) |
Encodes a distance unit to a DOM element. More... | |
static QDomElement | writeRectangle (const QgsRectangle &rect, QDomDocument &doc) |
static QDomElement | writeVariant (const QVariant &value, QDomDocument &doc) |
Write a QVariant to a QDomElement. More... | |
Assorted helper methods for reading and writing chunks of XML.
Definition at line 31 of file qgsxmlutils.h.
|
static |
Decodes a distance unit from a DOM element.
element | DOM element to decode |
Definition at line 23 of file qgsxmlutils.cpp.
|
static |
Definition at line 36 of file qgsxmlutils.cpp.
|
static |
Read a QVariant from a QDomElement.
Definition at line 165 of file qgsxmlutils.cpp.
|
static |
Encodes a distance unit to a DOM element.
units | units to encode |
doc | DOM document |
Definition at line 66 of file qgsxmlutils.cpp.
|
static |
Definition at line 78 of file qgsxmlutils.cpp.
|
static |
Write a QVariant to a QDomElement.
Supported types are
Definition at line 103 of file qgsxmlutils.cpp.